VIm: Stop creating *~ (backup) files
Closed this issue · 2 comments
mitthu commented
Stop cluttering the normal directories from being filled with *~ files.
mitthu commented
Redirect all backups and swap files to a specific directory. Look at -
http://stackoverflow.com/questions/743150/how-to-prevent-vim-from-creating-and-leaving-temporary-files
mitthu commented
Redirecting *~ and *.swp files to /tmp.
Note: This makes file recovery impossible in case of a crash because the /tmp directory is cleared at reboot. Also all file backups are deleted after a reboot. This should not be an issue for files in source control.