Vim Practical settings

Source: Internet
Author: User

Resolves an issue with a "~" file that appears after saving the edited Gvim file, editing_VIMRC file, and then added "Set writebackup "Setting no backup File"To resolve a problem with the "~" file appearing in the Vim save edit file, locate the "vimrc_example.vim "file, open the file,find this sentence: if has ("VMS") retains the if part of this judgment, the else part is commented out. The notes in Vim are "in effect."

Locate the _VIMRC file in the Gvim installation directory, open the file, and add the following code later.///comments: Adding line numbers and highlighting syntaxSet nu!
ColorScheme Desertsyntax EnableSyntax on
Comment: Solve Chinese garbled problemSet Encoding=utf-8Set Fileencodings=utf-8,chinese,latin-1if has ("Win32")Set Fileencoding=chineseElseSet Fileencoding=utf-8endif"Fix Menu garbledSource $VIMRUNTIME/delmenu.vimSource $VIMRUNTIME/menu.vim"Resolving consle output garbledlanguage Messages Zh_cn.utf-8

Note: Change font and sizeSet Guifont=yahei_consolas_hybrid:h12
////Windows gvim Multi-label SettingsYou can modify the registry if you "double-click" The open mode under Windows hkey_classes_root\applications\gvim.exe\shell\edit\command its key value modified to: "D:\VIM\vim74\gvim.exe"-P--remote-tab-silent "%1"among them, "D:\VIM\vim74" is my path to install VIM, note according to the actual modification.  and if you use the right mouse button "edit with Vim", first delete the registryHkey_classes_root\*\shellex\contextmenuhandlers\gvim, then manually add the right mouse button menu go directly to the registry and add the item "Edit with GVim" under Hkey_classes_root\*\shell,Add the subkey "command" under the item "Edit with GVim" and set its key value to the above key value in the right window .

Vim Practical settings

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.