我的vim轻量级配置

syntax on
set nu!
set ai!
set showmatch "设置括号匹配模式
let mapleader = ","
"set cursorcolumn  "列显示
set cmdheight=1
set ts=4 "Tab为4个空格
set sw=4
set shiftwidth=4
set backspace=2
set lbr "单词间不能断行
set shortmess=atI "启动不显示xx儿童的提示
set showcmd "开启命令提示
set smarttab
set ignorecase
set hlsearch
set incsearch
set wildmenu
set confirm
set paste
set clipboard+=unnamed
set cindent
set vb t_vb=
set guioptions-=m
set guioptions-=T
set autoread
set magic
set nobackup
set noswapfile
filetype indent on
filetype plugin on
nnoremap j gj
nnoremap k gk
xnoremap j gj
xnoremap k gk
set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s
"<@ Basic Config End@>"

"<@Coding Config Go>@"
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf8,chinese,taiwan,ansi
"<@Coding Config End>@"

colo torte

set nocp
filetype plugin on
map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .
"<@ TagList Config End@>"

"<@Buf Explorer Go@>"
"let g:bufExplorerShowRelativePath=1
"let g:bufExplorerSortBy='mru'
"let g:bufExplorerSplitRight=0
"let g:bufExplorerSplitVertical=1
"let g:bufExplorerSplitVertSize = 30
"let g:bufExplorerUseCurrentWindow=1
"let g:bufExplorerMaxHeight=13
nmap :BufExplorer
""Enter 树开关 u打开文件  e在新标签页打开
:nmap :VE
"<@Buf Explorer End@>"

"<@minibuffer settings Go@>"
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
let g:miniBufExplUseSingleClick = 1
autocmd BufRead,BufNew :call UMiniBufExplorer
"<@minibuffer settings End@>"


"<@winmangaer Settings Go @>"
"let g:winManagerWindowLayout = "BufExplorer,FileExplorer|TagList"
let g:winManagerWidth = 30
"let g:defaultExplorer = 0
nmap wm :WMToggle
"<@winmangaer Settings End@>"

set nu
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s

"hi BookMark_HighLight guifg=blue"

 

你可能感兴趣的:(vim)