日期:2014-05-16  浏览次数:20772 次

关于gvim的设置!


宏定义出现白色的背景色,是怎么回事怎么消除呢!

gvimrc
Python code

colorscheme slate
"插件ctags的设置
set guifont=Courier\10\Pitch\ 14
:set tags=/home/neolyao/projects/tags
"插件taglist的设置

let Tlist_Ctags_Cmd='/usr/bin/ctags' 
let Tlist_Show_One_File=1
let Tlist_OnlyWindow=1
let Tlist_Use_Right_Window=0
let Tlist_Sort_Type='name'
let Tlist_Exit_OnlyWindow=1
let Tlist_Show_Menu=1
let Tlist_Max_Submenu_Items=10
let Tlist_Max_Tag_length=20
let Tlist_Use_SingleClick=0
let Tlist_Auto_Open=0
let Tlist_Close_On_Select=0
let Tlist_File_Fold_Auto_Close=1
let Tlist_GainFocus_On_ToggleOpen=0
let Tlist_Process_File_Always=1
let Tlist_WinHeight=10
let Tlist_WinWidth=18
let Tlist_Use_Horiz_Window=0
map <silent> <leader>tl :TlistToggle<CR>
let mapleader=","

"插件WinManager的设置
let g:winManagerWindowLayout='FileExplorer|TagList'
"这里可以设置为多个窗口, 如'FileExplorer|BufExplorer|TagList'
let g:persistentBehaviour=0  "只剩一个窗口时, 退出vim.
let g:winManagerWidth=20
let g:defaultExplorer=1
nmap <silent> <leader>fir :FirstExplorerWindow<cr>
nmap <silent> <leader>bot :BottomExplorerWindow<cr>
nmap <silent> <leader>wm :WMToggle<cr>

"插件cscope的设置
"在.vimrc中增加如下设置, 就可以利用相应的快捷键进行不同的查找了.
if has("cscope")
    set cscopetag   " 使支持用 Ctrl+]  和 Ctrl+t 快捷键在代码间跳来跳去
                    " check cscope for definition of a symbol before checking ctags:
                    " set to 1 if you want the reverse search order.
    set csto=1
                    " add any cscope database in current directory
    if filereadable("cscope.out")
         cs add cscope.out
                    " else add the database pointed to by environment variable
    elseif $CSCOPE_DB !=""
          cs add $CSCOPE_DB
     endif

                    " show msg when any other cscope db added
    set cscopeverbose

nmap <C-/>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-/>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-/>d :cs find d <C-R>=expand("<cword>")<CR><CR>
endif


" Make external commands work through a pipe instead of a pseudo-tty
"set noguipty

" You can also specify a different font, overriding the default font
"if has('gui_gtk2')
"  set guifont=Bitstream\ Vera\ Sans\ Mono\ 12
"else
"  set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
"endif

" If you want to run gvim with a dark background, try using a different
" colorscheme or running 'gvim -reverse'.
" http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/ has examples and
" downloads for the colorschemes on vim.org

" Source a global configuration file if available
if filereadable("/etc/vim/gvimrc.local")
  source /etc/vim/gvimrc.local
endif


------解决方案--------------------
探讨
宏定义出现白色的背景色,是怎么回事怎么消除呢!

gvimrc
Python code

colorscheme slate
"插件ctags的设置
set guifont=Courier\10\Pitch\ 14
:set tags=/home/neolyao/projects/tags
"插件taglist的设置

let Tlist_Ctags_Cmd='/usr/bin/ctags……
<