vim:search
This is an old revision of the document!
Table of Contents
VIM - Search
Simple Search
Search for the specific /pattern:
/pattern
NOTE: pattern is the search word.
Search for other occurrences of the same word
If you see a specific word and want to search for other occurrences of the same word, use the * command.
NOTE: It will grab the word from under the cursor and search for the next one.
Incremental Search
If the incsearch option is set, Vim will show the first match for the pattern, while you are still typing it.
NOTE: This quickly shows a typo in the pattern.
Highlight Search
If the hlsearch option is set, Vim will highlight all matches for the pattern with a yellow background.
vim/search.1658244115.txt.gz · Last modified: 2022/07/19 15:21 by 85.203.36.253