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

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind