VIM simple tutorial (3) Vim simple tutorial (2) complete... VIM simple tutorial (3) Vim simple tutorial (2) http://www.2cto.com/ OS /201303/194219.html lesson 3 various search operations www.2cto.com for example we want to search for a simple string "include" in the document, then use the/command: /include If you want to continue searching after finding the first include, you can do this :/ In this case, vim will search for the last string by default. (Note: it cannot be used. command) there are several characters with special meanings (in fact, it is a regular expression). when searching, add \ to the front to escape these characters as follows :. * [] bytes % /\? ~ $ Vim remembers the previous search strings. . Enable incremental search: set incsearch disable incremental search: set noincsearch what is incremental search. just try it out in an experiment and I will not talk about it here. The following command can highlight the search results: set hlsearch turn off this feature command: set nohlsearch/command is backward search, if you want to search forward, use? Command. The n command repeats the previous search. /Command and? Commands support regular expressions. For regular expressions, there is a good tutorial on the Internet, "Getting Started with regular expressions for 30 minutes".
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.