Vim

Table of Content

Tutorials

Moving

Jumping

the # key create a backward motion jumping from the current word to the same word in the current buffer

the N key create a forward motion jumping from the current word to the same word in the current buffer

Buffers

Files

Tabs

or

:tabn

Window

Move cursor to other windows.

CTRL-W CTRL-W                       Move to the next window
CTRL-W j,k,h,l                      Move down, up, lfet, right
CTRL-W <Down>,<Up>,<Left>,<Right>   Move down, up, lfet, right

Word under cursor

yaw        yank a word, include leading or trailing white space
yiw        yank a inner word 
daw        delete
diw        delete

Folding

zi         switch on/off folding
za         fold/unfold current block
zr, zm     
zR, zM

Plugins

Open the vba file with vim, and type the :source % command right there. The % refers to the current file

+Python

.vimrc file

VIMRUNTIME

set runtimepath=~/vim_local,$VIMRUNTIME

Colours

[http://vimcolorschemetest.googlecode.com/svn/html/index-pl.html screenshots of colorscheme]

Send selected lines

One only need to copy send.vim and send2screen.py to the right directory.

http://www.vim.org/scripts/script.php?script_id=2104

http://www.vim.org/scripts/script.php?script_id=1048

http://users.physik.fu-berlin.de/~mgoerz/blog/2008/09/integrating-vim-with-ipython/

Completion

set cot=menu
    completeopt	whether to use a popup menu for Insert mode completion

Help

Others

Homepage
Comments

Hide Comments