Xin Xing and you disable Vim's automatic backup function

Source: Internet
Author: User

When we use gvim to edit a file, ~ If we do not want to automatically generate a backup file when editing the file, we need to modify its configuration file, but I did not find the corresponding configuration items in the vimrc file, so we found that we should modify it in the vimrc_example.vim file 74 under the vim installation directory. We found the following code at the beginning of its line 24th:

If has ("VMS") set nobackup "do not keep a backup file, use versions insteadelse set backup" Keep a backup fileendif
We only need to annotate the else part. Here, we need to note that the comment here is annotated using double quotation marks, that is, we write it as follows:

If has ("VMS") set nobackup "do not keep a backup file, use versions instead" else "set backup" Keep a backup fileendi
The configuration here is not configured in vimrc, but in vimrc_example.vim of vim74 in the Vim folder.

In addition, Here vim74 is related to my version number. Readers may not have this folder, but it means the same.

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.