极品修真强少推倒:~/.vimrc常用配置文件

来源:百度文库 编辑:中财网 时间:2024/04/29 17:33:11
set number
set showcmd
set incsearch
set expandtab
set showcmd
set history=400
set autoread
set ffs=unix,mac,dos
set hlsearch
set shiftwidth=2
set wrap
set ai
set si
set cindent
set termencoding=unix
set tabstop=2
set nocompatible
set showmatch
set fileencodings=utf-8,gb2312,18030,gbk
set fileformats=unix
set ttyfast
syntax on
set imcmdline
set previewwindow
set showfulltag
set cursorline
set ruler
set mouse=a
" Close the error bells
"
set vb t_vb=
set nowrapscan

" When open a file, it will jump to the last cursor position
""if has("autocmd")
""autocmd BufReadPost *
""if line("'\"") > 0 && line ("'\"") <= line("$") | exe "normal! g'\"" |
""endif
""endif

"'#  For ctags
   set tags=tags;
   set autochdir

""   " For taglist

"'#  For ctags
   set tags=tags;
   set autochdir

""   " For taglist
   let Tlist_Show_One_File=1
   let Tlist_Exit_OnlyWindow=1
   let Tlist_Auto_Open=1
   set updatetime=100

   " For auto complete '(' and '{'
   ino ( ():let leavechar=")"i
   ino < <>:let leavechar=">"i
   ino { {}:let leavechar="}"i
   ino ' '':let leavechar="'"i
   ino " "":let leavechar='"'i
   imap :exec "normal f" . leavechara