The solution was to enable backups in a vimrc :
% cat ~/.vimrc
:set backup
Now the original is saved as a backup after editing:% vi test.txt
% ls test.txt*
test.txt test.txt~
Anthony's blog for anything Tech, previously was anything Ubuntu...
% cat ~/.vimrc
:set backup
Now the original is saved as a backup after editing:% vi test.txt
% ls test.txt*
test.txt test.txt~
Nice and very interesting. Thank you for your sharing...........
ReplyDeleteAutomatic File Backup