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

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    我的vim轻量级配置

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/65989

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月9日 下午12:06
下一篇 2023年2月9日 下午12:06

相关推荐