I am a new Linux and unix-like operating system user. how to search and find words in Vi/Vim ?
Introduction: vi and vim is a text editor for Linux,macOS,Unix,and *BSD family of operation sysytems.
Find a word in Vim or Vi text editor
To search using Vim/vi, for the current word:
- In normal mode,you can search forward or backward.
- One can search forward in Vim/Vi by pressing / and then typing your search word.
- To search backward in Vim/Vi pressing ? and then typing your search wrod.
- Once word found in Vim, you can press the n key to directly to the next occurrence of the word in backwards. Press the N to directly to the opposite direction,i.e. forwards.
来源:oschina
链接:https://my.oschina.net/u/3378766/blog/3162626