Tags

,

Replace foo by bar:
$ ^foo^bar

The above changes just one instance of foo by bar; to change multiple instances use:
$ !n:gs/foo/bar/
where n is the command number (replace it with “!” for previous command).

Advertisements