tags:

views:

62

answers:

3

If I ran a search pattern and nothing was found, is there a shortcut to bring it back for me to edit?

+3  A: 

Hit / and then up arrow.

pestaa
+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
+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