From 57ac0d0616f7d2464edacc78421bc3de93ded99d Mon Sep 17 00:00:00 2001 From: Max-bazinga <76824143@qq.com> Date: Mon, 6 Mar 2017 20:43:43 +0800 Subject: [PATCH] add my configure --- my_configs.vim | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 my_configs.vim diff --git a/my_configs.vim b/my_configs.vim new file mode 100644 index 00000000..25f7b867 --- /dev/null +++ b/my_configs.vim @@ -0,0 +1,51 @@ +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Taglist 的设置 +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +let Tlist_Show_Onw_File=1 "只显示当前文件的tags +let Tlist_WinWidth=40 "设置taglist宽度 +let Tlist_Exit_OnlyWindow=1 "taglist窗口是最后一个窗口,则退出vim +let Tlist_Use_Right_Window=1 "在Vim窗口右侧显示taglist窗口 +nmap tl : Tlist + +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" indent-guides 的设置 +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +let g:indent_guides_auto_colors=0 +let g:indent_guides_guide_size=1 +autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3 +autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4 +hi IndentGuidesOdd guibg=red ctermbg=3 +hi IndentGuidesEven guibg=green ctermbg=4 + +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" cscope 的设置 +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +nnoremap ca :call CscopeFindInteractive(expand('')) +nnoremap l :call ToggleLocationList() +" s: Find this C symbol +nnoremap cs :call CscopeFind('s', expand('')) +" g: Find this definition +nnoremap cg :call CscopeFind('g', expand('')) +" d: Find functions called by this function +nnoremap cd :call CscopeFind('d', expand('')) +" " c: Find functions calling this function +nnoremap cc :call CscopeFind('c', expand('')) +" " t: Find this text string +nnoremap ct :call CscopeFind('t', expand('')) +" " e: Find this egrep pattern +nnoremap ce :call CscopeFind('e', expand('')) +" " f: Find this file +nnoremap cf :call CscopeFind('f', expand('')) +" " i: Find files #including this file +nnoremap ci :call CscopeFind('i', expand('')) + + +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" 其他设置 +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +set number + +set cursorcolumn "高亮光标所在的列 +set cursorline "高两光标所在的行 +highlight CursorLine cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE +highlight CursorColumn cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE