vimrc

set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
   set termencoding=utf-8
      set encoding=utf-8

set nocompatible


set foldmethod=syntax

set tabstop=4
syntax on
set incsearch
set showmatch
set hls is
set hlsearch
set expandtab ts=4 sw=4 sts=4
                                                                                                                                                                        

" encoding
set encoding=GBK
set fileencodings=GBK


set fileencodings=utf-8,gbk,gb18030,utf-16,big5


:hi CursorLine   cterm=NONE ctermbg=red ctermfg=white guibg=darkred guifg=white
set cursorline

set nowritebackup
set smartindent

autocmd BufWinLeave * if expand("%") != "" | mkview | endif
autocmd BufWinEnter * if expand("%") != "" | loadview | endif

set backspace=indent,eol,start


set laststatus=2 "show status line 
set statusline=%f%m%r%w\ %y\ \ \ \

set statusline+=%=
set statusline+=[line:%l/%L][col:%c][%3p%%]             "[line:499/677][col:74][ 73%]  


let Tlist_Ctags_Cmd='/usr/bin/ctags'

猜你喜欢

转载自blog.csdn.net/smilesundream/article/details/80188752