Vim for Windows full screen plug-in

Source: Internet
Author: User

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 =

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.