Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim: Changing pattern if nothing found?

Tags:

vim

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

like image 785
Marco Avatar asked Mar 06 '26 23:03

Marco


1 Answers

Typing the character for the appropriate mode (/ or :) and pushing the up arrow will recall previous commands of that type.

like image 66
Ignacio Vazquez-Abrams Avatar answered Mar 10 '26 12:03

Ignacio Vazquez-Abrams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!