swconfig/vim/vim其他.txt

17 lines
400 B
Plaintext
Raw Normal View History

1.如何让Vim Gui启动时默认自动最大化
(1)Unix Like
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
(2)gvim
autocmd GUIEnter * simalt ~x