diff --git a/vim/vim其他.txt b/vim/vim其他.txt new file mode 100644 index 0000000..22e9219 --- /dev/null +++ b/vim/vim其他.txt @@ -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 \ No newline at end of file