Gvim configuration file

Source: Internet
Author: User

"Turn off compatibility modeSetnocompatible"imitate Select all, copy, pasteSOURCE $VIMRUNTIME/Vimrc_example.vimsource $VIMRUNTIME/Mswin.vimbehave Mswin"gvim font SettingsSetGuifont=monaco:h22"Gvim Internal CodeSetencoding=utf-8"the currently edited file encodingSetfileencoding=utf-8"Gvim Opening a file that supports encoding"setfileencodings=utf-8,gbk,gb2312,latin1"solve Consle output garbledLanguage Messages zh_cn.utf-8"Fix Menu garbledSOURCE $VIMRUNTIME/Delmenu.vimsource $VIMRUNTIME/Menu.vim"set the terminal encoding to gvim internal encoding encodingLet &termencoding=&encoding"color schemeColor Desert"prevent special symbols from appearing properlySetAmbiwidth=Double"do not generate backup filesSetNobackup"turn on line number markersSet NumberSetDiffexpr=Mydiff () function Mydiff () let opt='-A --binary'  if&diffopt =~'icase'| Let opt = opt.'- I.'|endifif&diffopt =~'Iwhite'| Let opt = opt.'- b'|endif let Arg1=v:fname_inifArg1 =~' '| Let arg1 ='"'. Arg1.'"'|endif let Arg2=v:fname_newifArg2 =~' '| Let arg2 ='"'. Arg2.'"'|endif let Arg3=V:fname_outifArg3 =~' '| Let Arg3 ='"'. Arg3.'"'|endif let eq="'  if$VIMRUNTIME =~' '    if&sh =~'\<cmd'Let cmd='""'. $VIMRUNTIME.'\diff "'Let eq='"'    ElseLet cmd= Substitute ($VIMRUNTIME,' ','" ',"') .'\diff "'endifElseLet cmd= $VIMRUNTIME.'\diff'endif Silent Execute'!'. Cmd.' '. Opt. Arg1.' '. Arg2.'>'. Arg3. Eqendfunction

Gvim configuration file

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.