Thursday, February 13, 2014

Notes on VI

insensitive search
use the \c escape sequence:
/\ccopyright
add set ignorecase for case-insensitive searching in my vimrc, and I can use \C to do a case-sensitive search 
I find the smartcase very useful. If you search for something containing uppercase characters, it will do a case sensitive search; if you search for something purely lowercase, it will do a case insensitive search. You can use \c and \C to override this:
:set smartcase
:set ic
:set noic

Page up (back) is Control-B; page down (forward) is Control-F. Half-pages are Control-U (up) and Control-D (down).

Vi Cheat Sheet
http://www.keyxl.com/aaab462/105/VIM-Text-Editor-keyboard-shortcuts.htm

No comments:

Post a Comment