Vim

file

:e file
:w
:buffers
:bn
:bdelete
:q
:x

move

gg first line
G last line
Ctrl + f / b page
^ / $ line
w / b word
f ; character
% parenthesis

search

:%s/foo/bar/gc

window

:sp
:vs
:close
Ctrl + w w

.vimrc

syntax on
autocmd FileType python setl tabstop=4 shiftwidth=4 expandtab
autocmd FileType ruby setl tabstop=2 shiftwidth=2 expandtab
autocmd FileType eruby setl tabstop=2 shiftwidth=2 expandtab