如何让Vim Gui启动时默认自动最大化
This commit is contained in:
parent
fde575f48b
commit
e37a0f0217
17
vim/vim其他.txt
Normal file
17
vim/vim其他.txt
Normal 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
|
Loading…
x
Reference in New Issue
Block a user