首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

关于gvim的设置!解决思路

2012-05-04 
关于gvim的设置!宏定义出现白色的背景色,是怎么回事怎么消除呢!gvimrcPython codecolorscheme slate插件c

关于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=1let Tlist_OnlyWindow=1let Tlist_Use_Right_Window=0let Tlist_Sort_Type='name'let Tlist_Exit_OnlyWindow=1let Tlist_Show_Menu=1let Tlist_Max_Submenu_Items=10let Tlist_Max_Tag_length=20let Tlist_Use_SingleClick=0let Tlist_Auto_Open=0let Tlist_Close_On_Select=0let Tlist_File_Fold_Auto_Close=1let Tlist_GainFocus_On_ToggleOpen=0let Tlist_Process_File_Always=1let Tlist_WinHeight=10let Tlist_WinWidth=18let Tlist_Use_Horiz_Window=0map <silent> <leader>tl :TlistToggle<CR>let mapleader=",""插件WinManager的设置let g:winManagerWindowLayout='FileExplorer|TagList'"这里可以设置为多个窗口, 如'FileExplorer|BufExplorer|TagList'let g:persistentBehaviour=0  "只剩一个窗口时, 退出vim.let g:winManagerWidth=20let g:defaultExplorer=1nmap <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 cscopeverbosenmap <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 availableif filereadable("/etc/vim/gvimrc.local")  source /etc/vim/gvimrc.localendif


[解决办法]
探讨
宏定义出现白色的背景色,是怎么回事怎么消除呢!

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

------解决方案--------------------


colorscheme slate 这行设置色彩方案,换一个吧

[解决办法]
先换个coloescheme试试

热点排行