To search using Vim/vi

  • In normal mode, you can search forward or backward.
  • One can search forward in vim/vi by pressing / and then typing your search pattern/word.
  • To search backward in vi/vim by pressing ? and then typing your search pattern/word.
  • Once a word found in vim, you can press the n key to go directly to the next occurrence of the word backwards.

Comments

Popular posts from this blog

Check MySQL query history from command line