Skip to content

Instantly share code, notes, and snippets.

@zivee
Last active January 1, 2016 08:37
Show Gist options
  • Save zivee/11205620 to your computer and use it in GitHub Desktop.
Save zivee/11205620 to your computer and use it in GitHub Desktop.
Ubuntu 14.04下GVIM的字体间距过宽和显示GBK中文的设置
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Important:
" This requries that you install https://github.com/amix/vimrc !
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set encoding=utf-8
"set fileencoding=chinese
set fileencodings=ucs-bom,utf-8,chinese
set ambiwidth=double
if has("linux")
"Ubuntu 14.04下GVIM的字体间距过宽
set gfn=Source\ Code\ Pro\ 12,Bitstream\ Vera\ Sans\ Mono\ 11
endif
if has("win32")
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决consle输出乱码
language messages zh_CN.utf-8
endif
@zivee
Copy link
Author

zivee commented Apr 23, 2014

这里主要解决的是字体设置字体和大小间设置与通常设置不同
“:h”改为“\ ”(有空格)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment