Friday, October 28, 2011

Mark, Search, Code Block

Marking
m{a-zA-Z} marks places
'{a-zA-Z} go back to mark

Searching
* to word under cursor

Code Block
% - go to matching brace

Delete Word or Sentence
dw dis dip






Thursday, October 13, 2011

cscope and ctags

* CScope: do a 'cscope -R -b' in the directory, then run vim to use cscope.out auto.

* CTags: do 'ctags --recurse=yes .' in the directory, run vim, use ctrl-] and ctrl-t
(install cscope and ctags before usage)

Tuesday, October 4, 2011

vim links

http://www.tuxfiles.org/linuxhelp/vimcheat.html

100 Vim commands every programmer should know
http://www.catswhocode.com/blog/100-vim-commands-every-programmer-should-know