Home Diary Blog Photo Community Open Source
vi configuration

vi ~/.exrc

imap jj <ESC>
syntax on

set fileencoding=utf8
set fileencodings=utf8,cp936,big5,ansi
set fenc=utf-8
set fencs=utf-8,usc-bom,gb18030,gbk,gb2312,cp936,euc-jp
set t_Co=256
set cursorline
set laststatus=2
set nocompatible
set number
set ruler
set showmatch
set matchtime=5
set ignorecase
set backspace=indent,eol,start
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab
set formatoptions=tcrqn
set autoindent
set smartindent
set cindent
set incsearch
set hlsearch