Vim Gui配置

Unix/Linux,在vimrc里添加

if has("gui_running")
  " GUI is running or is about to start.
  " Maximize gvim window (for an alternative on Windows, see simalt below).
  set lines=999 columns=999
else
  " This is console Vim.
  if exists("+lines")
    set lines=50
  endif
  if exists("+columns")
    set columns=100
  endif
endif

  

autocmd GUIEnter * simalt ~x       

autocmd GUIEnter * simalt ~x
autocmd GUIEnter * simalt ~x
set encoding=chinese
set langmenu=zh_CN.GBK
set imcmdline
set guifont="Serif 14"
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese,cp936
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim 

  

  

posted @ 2021-03-26 16:27  zhaogaojian  阅读(443)  评论(0编辑  收藏  举报