zhuang@linux:~/notes/practical-vim/12-matching-patterns-and-literals/$ less

Practical Vim / chapter 12

Matching Patterns and Literals

This post extracts some knowledge from Practical Vim Chapter 12 – Matching Patterns and Literals.

vim
:set ignorecase
" Ignore case
\c  
" Force case
\C

As a general rule, if you want to search for a regular expression, use the \v pattern switch, and if you want to search for verbatim text, use the \V literal switch.

zhuang@linux:~/notes/practical-vim/12-matching-patterns-and-literals/$ comments