vim:search
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vim:search [2022/07/19 15:15] – created 85.203.36.253 | vim:search [2022/07/19 15:22] (current) – 85.203.36.253 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VIM - Search ====== | ====== VIM - Search ====== | ||
+ | |||
+ | ===== Simple Search ===== | ||
Search for the specific **/ | Search for the specific **/ | ||
Line 6: | Line 8: | ||
/pattern | /pattern | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Search for other occurrences of the same word ===== | ||
+ | |||
+ | To search for other occurrences of the same word the cursor is on, use the **< | ||
+ | |||
+ | <code vim> | ||
+ | * | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Incremental Search ===== | ||
+ | |||
+ | If the **incsearch** option is set, Vim will show the first match for the pattern, while you are still typing it. | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Highlight Search ===== | ||
+ | |||
+ | If the **hlsearch** option is set, Vim will highlight all matches for the pattern with a yellow background. | ||
+ | |||
+ | ---- | ||
+ | |||
+ |
vim/search.1658243710.txt.gz · Last modified: 2022/07/19 15:15 by 85.203.36.253