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

This commit is contained in:
taynpg 2024-04-29 14:06:54 +08:00
parent fde575f48b
commit e37a0f0217

17
vim/vim其他.txt Normal file
View File

@ -0,0 +1,17 @@
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