When I edit and save files, Vim creates a file with the same name as

the original file and a “~” character at the end. How do I stop Vim from creating this file? (or) How do I disable the Vim backup file feature? You have set the ‘backup’ option, so Vim creates a backup file when saving the original file. You can stop Vim from creating the backup file, by clearing the option:

    :set nobackup

Note that, by default this option is turned off. You have explicitly enabled the ‘backup’ option in one of the initialization files. You may also have to turn off the ‘writebackup’ option:

    :set nowritebackup

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind