If I ran a search pattern and nothing was found, is there a shortcut to bring it back for me to edit?
+5
A:
Typing the character for the appropriate mode (/
or :
) and pushing the up arrow will recall previous commands of that type.
Ignacio Vazquez-Abrams
2010-03-14 03:20:43
+2
A:
The last search pattern is also saved in the /
register. If you want to use it in another command (such as :s/...
) then you can insert it in the command line with <CTRL-R>\
.
Dave Kirby
2010-03-14 10:00:24