Unix: vi
Linux: vim:
o a i
:w :q :wq :x :q!
:G :gg
:x or :xG
:w, b
/str
n, N
:s/str1/str2/g # 单行替换(当前光标行)
:s/x86_64/i386/g
:%s/str1/str2/g # 全文替换
yy Nyy p
dd Ndd p
undo: u
redo: ctrl + r
ctrl-w, s, v, Arrow
:set nu, nonu
:set ai(autoindent)
:set ignorecase
~/.vimrc