I made a mistake in a complex search pattern in vi editor and want to modify it now.
I know vi remembers the last search pattern but can I view and edit it ?
Modern vi/vim keeps a history of :
and /
command used in vi. So you can just press up arrow key to get your search pattern again and then edit it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With