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