- indenting:
< >
indents to the left and right repectivly. >2 will shift to the right two lines.
>> indent line to the right. - iw
- iB
- ib
- i"
- % - Move to the closing ) } ] of the closest ( { [
example:
void f( array[i] )
then if the cursor is on 'a' of array you can do 'd%' and that will cut array[i] into the register. - Auto completion: in insert mode, Ctrl-n and Ctrl-p
- Goto local Declaration: gd
When the cursor is on a local variable, this command will jump to its declaration. - Goto file under cursor: gf
- find word under cursor: *
Saturday, May 12, 2007
C++ Programming with vim
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment