原创

gvim的一些设置和tips

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/lantianjialiang/article/details/47293533
功能 方法
到文件第一行 :1
到文件最后一行 G
新建文件 :enew
:w filename
保存gvim的font设置 1.search it
:set gfn?
guifont=Mono Uralic 10
2. save it to .gvimrc
vi ~/.gvimrc
set gfn=Mono\ Uralic\ 10
列选择 CTRL-V
|
do what you want
展开阅读全文

关于gvim设置

05-03

[img=http://img.my.csdn.net/uploads/201205/03/1336040711_9334.png][/img]rnrn宏定义出现白色的背景色,是怎么回事怎么消除呢!rnrn[color=#FF00FF][b]gvimrc[/b][/color]rn[code=Python]rncolorscheme slatern"插件ctags的设置rnset guifont=Courier\10\Pitch\ 14rn:set tags=/home/neolyao/projects/tagsrn"插件taglist的设置rnrnlet Tlist_Ctags_Cmd='/usr/bin/ctags' rnlet Tlist_Show_One_File=1rnlet Tlist_OnlyWindow=1rnlet Tlist_Use_Right_Window=0rnlet Tlist_Sort_Type='name'rnlet Tlist_Exit_OnlyWindow=1rnlet Tlist_Show_Menu=1rnlet Tlist_Max_Submenu_Items=10rnlet Tlist_Max_Tag_length=20rnlet Tlist_Use_SingleClick=0rnlet Tlist_Auto_Open=0rnlet Tlist_Close_On_Select=0rnlet Tlist_File_Fold_Auto_Close=1rnlet Tlist_GainFocus_On_ToggleOpen=0rnlet Tlist_Process_File_Always=1rnlet Tlist_WinHeight=10rnlet Tlist_WinWidth=18rnlet Tlist_Use_Horiz_Window=0rnmap tl :TlistTogglernlet mapleader=","rnrn"插件WinManager的设置rnlet g:winManagerWindowLayout='FileExplorer|TagList'rn"这里可以设置为多个窗口, 如'FileExplorer|BufExplorer|TagList'rnlet g:persistentBehaviour=0 "只剩一个窗口时, 退出vim.rnlet g:winManagerWidth=20rnlet g:defaultExplorer=1rnnmap fir :FirstExplorerWindowrnnmap bot :BottomExplorerWindowrnnmap wm :WMTogglernrn"插件cscope的设置rn"在.vimrc中增加如下设置, 就可以利用相应的快捷键进行不同的查找了.rnif has("cscope")rn set cscopetag " 使支持用 Ctrl+] 和 Ctrl+t 快捷键在代码间跳来跳去rn " check cscope for definition of a symbol before checking ctags:rn " set to 1 if you want the reverse search order.rn set csto=1rn " add any cscope database in current directoryrn if filereadable("cscope.out")rn cs add cscope.outrn " else add the database pointed to by environment variablern elseif $CSCOPE_DB !=""rn cs add $CSCOPE_DBrn endifrnrn " show msg when any other cscope db addedrn set cscopeverbosernrnnmap s :cs find s =expand("")rnnmap g :cs find g =expand("")rnnmap c :cs find c =expand("")rnnmap t :cs find t =expand("")rnnmap e :cs find e =expand("")rnnmap f :cs find f =expand("")rnnmap i :cs find i ^=expand("")$rnnmap d :cs find d =expand("")rnendifrnrnrn" Make external commands work through a pipe instead of a pseudo-ttyrn"set noguiptyrnrn" You can also specify a different font, overriding the default fontrn"if has('gui_gtk2')rn" set guifont=Bitstream\ Vera\ Sans\ Mono\ 12rn"elsern" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1rn"endifrnrn" If you want to run gvim with a dark background, try using a differentrn" colorscheme or running 'gvim -reverse'.rn" http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/ has examples andrn" downloads for the colorschemes on vim.orgrnrn" Source a global configuration file if availablernif filereadable("/etc/vim/gvimrc.local")rn source /etc/vim/gvimrc.localrnendif[/code] 论坛

没有更多推荐了,返回首页