我的vim輕量級配置

來源:互聯網
上載者:User

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"

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.