|
vi tips
Aug 11, 2009 22:34:54 GMT -5
Post by ZF on Aug 11, 2009 22:34:54 GMT -5
Editing i insert I insert at start of line :e! //restore everything to b4 :<line number> //goto line
Searching / find forwards n next word forward > find backwards N next word backwards n next set -ic //case sensitive ( for search )
Copying yy copy entire line p to paste below P to paste above u to undo ctrl v //visual block y to copy d to delete
Improve kernel indexing cscope -kuR ctrl d to escape after done
Jump to calling function :cs find c <functionname>
Jump to definition of function :cs find g <functionname> SHORTCUT : ctrl ] to jump to function definition ctrl t to return
Using .vimrc ctrl ww //switch window
|
|