Currently, gvim can only be used in windows.Code. Most of the time, we want the editor to be opened to maximize, so that the code can be displayed as much as possible.
Here is a Vim extension (not a plug-in). First download the compressed package and then drop the DLL file into the directory where gvim.exe is located (that is, the installation directory ).
Then, you can use the built-in gvim command to call the interface in this DLL to maximize the window (in fact, autoit or other similar tools can also be done, but I prefer this method ).
Map <F11> <ESC>: Call libcallnr ("gvimfullscreen. dll", "togglefullscreen", 0) <CR>
It seems that everyone likes to bind this function to the F11 key.:-0Today is a fool's day. By the way, I show off my gvim full screen.
By the way, you can provide code to maximize gvim activation in windows.
If has ('gui _ running') & has ("Win32") Au guienter * simalt ~ Xendif
The autocmd command is really useful. We recommend that you use it frequently later. In addition, simalt provides the possibility to control alt-{key}, so that you can use it to manage Vim windows (maximize, minimize, and open file menus ).
PS: remove the menu bar and so on:
Set Go =