I would like to have the following search in Vim too
(reverse-i-search)`':
Enter a word of your previous command, and you get the full command.
I know the chronological history tool in Vim
q:
However, it is not that useful as the reverse search.
How can you have a similar reverse search in Vim as in terminal?
Enter the first letters of your previous command and push <Up> arrow (or Ctrl+p).
:set li<up>
:set lines=75
Don't forget to check history option and set it to big enough value
:set history=1000
If you have a Visor on Mac, try :set lines=48, instead. For some reason, the window expands too much with 75 lines.
75 is just for example purpose but thanks for Visor. I didn't know about this one though I never need one. But I like it!
I use not a terminal Vim but MacVim.
Thanks. That's a lot better than the default history size, which I found out to be 20. No wonder my history had such a short-memory and I had to retype everything.
@Deiwin Ctrl+p (& Ctrl+n for next) as in bash command-line to call last command