python - When I use VIM via terminal, I keep getting duplicate files with a ~ appended to the end. What are these? -


this question has answer here:

for example, i'll use vim code python script , save file.

when navigate directory saved in , use ls command, comes:

test_file.py
test_file.py~

are these backup files?

yes, files end tilde (~) backups of files right before edited it.

these backups handy if experience crash. if want save them in directory, can add .vimrc:

set backupdir=~/vim_tmp,. set directory=~/vim_tmp,. 

where ~/vim_tmp directory want store backup files.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -