当前位置: 技术问答>linux和unix
关于gvim的设置!
来源: 互联网 发布时间:2017-02-20
本文导语: 宏定义出现白色的背景色,是怎么回事怎么消除呢! gvimrc colorscheme slate "插件ctags的设置 set guifont=Courier10Pitch 14 :set tags=/home/neolyao/projects/tags "插件taglist的设置 let Tlist_Ctags_Cmd='/usr/bin/ctags' let Tlist_Show_One_File=1 let Tlist_On...
宏定义出现白色的背景色,是怎么回事怎么消除呢!
gvimrc
colorscheme slate
"插件ctags的设置
set guifont=Courier10Pitch 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 tl :TlistToggle
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 fir :FirstExplorerWindow
nmap bot :BottomExplorerWindow
nmap wm :WMToggle
"插件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 s :cs find s =expand("")
nmap g :cs find g =expand("")
nmap c :cs find c =expand("")
nmap t :cs find t =expand("")
nmap e :cs find e =expand("")
nmap f :cs find f =expand("")
nmap i :cs find i ^=expand("")$
nmap d :cs find d =expand("")
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
|
先换个coloescheme试试
|
应该在C/C++的语言高两插件里面找吧
没有用过GVim,我用的Notepad++每种语言插件都有一个XML文件
|
colorscheme slate 这行设置色彩方案,换一个吧