ubuntu下安装vim
sudo aptitude -y install vim
安装supertab
wget http://www.vim.org/scripts/download_script.php?src_id=21752 -nc -O ~/download/supertab.vmbvim ~/download/supertab.vmb:UseVimball
.vimrc配置
set nocompatible " no compatible set showmode " show vim mode set guioptions-=T " delete gui toolbarset ruler " show the last row statusfiletype on " check filetypesyntax on " color and syntaxset history=1000 " line of historyset background=dark " bgset autoindent " auto indentset smartindent " smart indentset tabstop=4 " tab for 4 spacesset shiftwidth=4 " shift for 4 spacesset cursorline " line under cursorset backspace=indent,eol,startset hlsearch " highlight searchset showmatch " match modeset incsearch " search while inputing"let &termencoding=&encoding"set fileencodings=utf-8-bom,ucs-bom,utf-8,cp936,gb18030,ucs,big5,gbk"set fileencodings=utf8,ucs-bom,gb18030,gbk,gb2312,cp936"set termencoding=utf8"set encoding=utf8let g:SuperTabDefaultCompletionType="context"