我的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"

 

转载于:https://www.cnblogs.com/viviman/archive/2012/10/16/2775115.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值