編輯 _vimrc
------------------------------
set nocompatible
syntax on
behave xterm
set autoindent
set nu
set shiftwidth=4
set selectmode=mouse
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,gbk,big5,utf8
set ffs=unix,dos
set ff=unix
set encoding=utf-8
set termencoding=utf-8
map <F3> :set cursorline!<CR><Bar>:echo "Highlight active cursor line: " . /
strpart("Off On", 3 * &cursorline, 3)<CR>
if &background== "light"
highlight comment ctermfg=darkgreen guifg=darkgreen
else
highlight comment ctermfg=green guifg=green
endif
nmap l <End>
highlight SpellErrors ctermfg=Red guifg=Red cterm=underline gui=underline /
term=reverse
(閱讀全文)