From e37a0f02173d1687aa12088e7d7f59e3a76163af Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 29 Apr 2024 14:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E4=BD=95=E8=AE=A9Vim=20Gui=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6=E9=BB=98=E8=AE=A4=E8=87=AA=E5=8A=A8=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vim/vim其他.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vim/vim其他.txt 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