foyyof的笔记 https://passport2.21ic.com/?89518 [收藏] [复制] [RSS]

日志

GVIM 设置(/usr/shar/..)

已有 607 次阅读2006-12-26 13:08 |个人分类:LINUX资料收集|系统分类:嵌入式系统

set guifont=Bitstream\ Vera\ Sans\ Mono\ 10
set guifontwide=ArphicMingGB\ 11

set encoding=euc-cn
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
if version >= 500
let c_comment_strings=1
syntax on
set hlsearch
set mousehide
highlight Normal guibg=black guifg=white
highlight Cursor guibg=Green guifg=NONE
highlight NonText guibg=black
highlight Constant gui=NONE guibg=black
highlight Special gui=NONE guibg=black
endif

 

 

 

 

===================================================

 

这是我的gvimrc,特别注意第二行,加上后就不会再有半个汉字的现象了:)

set fileencodings=gb2312
set encoding=euc-cn
~~~~~~~~~~~~~~~~~

set guifontset=-sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-1,-misc-simsun-medium-r-normal--16-*

set ch=2 " Make command line two lines high

set mousehide " Hide the mouse when typing text

" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>

" Only do this for Vim version 5.0 and later.
if version >= 500

" I like highlighting strings inside C comments
let c_comment_strings=1

" Switch on syntax highlighting if it wasn't on yet.
if !exists("syntax_on")
syntax on
endif

" Switch on search pattern highlighting.
set hlsearch

" For Win32 version, have "K" lookup the keyword in a help file
"if has("win32")
" let winhelpfile='windows.hlp'
" map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR>
"endif

" Set nice colors
" background for normal text is light grey
" Text below the last line is darker grey
" Cursor is green, Cyan when ":lmap" mappings are active
" Constants are not underlined but have a slightly lighter background
" highlight Normal guibg=grey90
" highlight Cursor guibg=Green guifg=NONE
"highlight lCursor guibg=Cyan guifg=NONE
"highlight NonText guibg=grey80
"highlight Constant gui=NONE guibg=grey95
"highlight Special gui=NONE guibg=grey95

colorscheme murphy


endif



===============================================

 

主要是支持中文加改变字体大小的关键是 set gfs -*-iso8859-1,-*-gb2312.1980-0

 

如: set gfs -adobe-courier-medium-r-normal-*-16-100-*-*-m-*-iso8895-1,-*-gb2312.1980-0

 

 

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)