In linux cli I can do ctrl-r
and do a reverse search and choose something I have done easily.
Is there something similar in vim? I mean I may run a command using :
(could be anything like a long substitution) and if I need to do it again I need to retype it.
Is there a way to avoid retyping but instead somehow search back and execute it?
Take the 2-minute tour
×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
||||
|
You may find I tried to make an animation of its usage: Also see You can also re-run the last command from normal mode by typing |
|||||||||
|
Entering : and then the beginning of the command previously issued followed by Up will retrieve the matching command. If there is more than one option available, you can cycle through them with Up and Down. |
|||
|