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