gvim非常适合管理超大型的项目(150w行左右),不管是编辑还是代码浏览,从Ubuntu7.04升成7.10之后,gvim出现了乱码。
如果是 cscope+ctags+gvim(vim)。可以不用/etc/share/vim下面的gvimrc。而直接用 ~/.vimrc作为配置文件,如果没有 ,自己touch就行。
解决乱码的正确方法是 在~/.vimrc中添加下面2句话
"=================================================================
"=================================================================
if has("gui")
set guifont=Courier\ 10\ Pitch\ 10
endif
"=================================================================
"=================================================================
"顺便把我的.vimrc贴出来做个备份
"F2--打开树状浏览窗口
"F4--打开函数表窗口
"F11--快速查找
"ctr+鼠标左键 -- 进入函数、字符串定义处
"ctr+鼠标右键 -- 返回跳转前的一个页面
"实际上,装好cscope之后,在命令行下面输入cs find将会详细提示cscope的常用的用法。
if has('gui_gtk2')
set guifont=Sans
else
set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
endif
if has("gui")
set guifont=Courier\ 10\ Pitch\ 10
endif
set tags=tags;,/nfsroot/rootfs/usr/gpephone/include/tags
"set autochdir
set tabstop=2
set mouse=a
syntax on
let Tlist_Inc_WinWidth=0
let Tlist_Use_Right_Window=1
let Tlist_File_Fold_Auto_Close=1
let Explore_Use_Left_Window=1
map :Explore
map :cs find s =expand("")
map :cs find g =expand("")
map :cs find t =expand("")
map :WMToggle
map :TlistToggle
map f :scs find f =expand("")
map d \:vert scs find d =expand("")
map
inoremap
"cs add /scratchbox/source/usr/gpephone/cscope.out
"cs add /nfsroot/rootfs/usr/gpephone/include/cscope.out
"cs add /nfsroot/rootfs/usr/gpephone/include/cscope.out
cs add /scratchbox/source2/targets/cscope.out
"cs add /nfsroot/rootfs/usr/gpephone/include/cscope.out
set path+=/nfsroot/rootfs/usr/gpephone/include/**
"add /home/wile/glade/cscope.out
"
"zw
let Tlist_File_Fold_Auto_Close=1
"let g:winManagerWindowLayout = "FileExplorer"
cd /scratchbox/source2/targets
"set background=dark
"set background=blue
colorscheme default
"if has("cscope")
"set csprg=/usr/bin/cscope
"set csto=0
"set cst
"set nocsverb
"if filereadable("cscope.out")
"cs add cscope.out
"elseif $CSCOPE_DB != ""
"cs add $CSCOPE_DB
"endif
"
"set csverb
"set cscopetag
"set cscopequickfix=s-,g-,c-,d-,t-,e-,f-,i-
"endif
"if &t_Co > 1
syntax enable
set tabstop=4
"endif
阅读(1082) | 评论(0) | 转发(0) |