Reputation: 4395
If I ran a search pattern and nothing was found, is there a shortcut to bring it back for me to edit?
Upvotes: 2
Views: 127
Reputation: 26572
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>\
.
Upvotes: 2
Reputation: 799082
Typing the character for the appropriate mode (/
or :
) and pushing the up arrow will recall previous commands of that type.
Upvotes: 5