- 论坛徽章:
- 0
|
终于可以在gvim下输入中文了
here is my ~/.exrc, modified from the example .exrc
- set guifontset=-b&h-lucidatypewriter-medium-r-normal-*-*-120-*-*-m-*-iso8859-1,-misc-SimSun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0
- set nocp incsearch
- set cinoptions=:0,p0,t0
- set cinwords=if,else,while,do,for,switch,case
- set formatoptions=tcqr
- set cindent
- syntax on
- 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
- endif
复制代码 |
|