如何让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

如果你是windows的GVim,在_vimrc里添加

autocmd GUIEnter * simalt ~x

你可能感兴趣的:(如何让Vim Gui启动时默认自动最大化)