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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -