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:
- why vim save files ~ extension? 8 answers
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
Post a Comment