美文网首页
如何让Vim Gui启动时默认自动最大化

如何让Vim Gui启动时默认自动最大化

作者: 帅灰 | 来源:发表于2015-09-08 21:19 被阅读1571次

如果你是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启动时默认自动最大化

      本文链接:https://www.haomeiwen.com/subject/kzfpcttx.html