On Mo, 09 Mär 2026, CrestChristopher wrote:
> When I create a file in Vim, save it; a backup should be created after the > save or after I've saved and added more to the document. In either case none > of these two are working ? So I tried this out: #v+ ~/tmp/$ mkdir ~/vim-backup ~/tmp/$ cat backup.vim set nocp set backupdir=~/vim-backup// set backup ~/tmp/$ vim --clean -u backup.vim :e ~/.vim/vimrc :w :q ~/tmp/$ ls -l ~/vim-backup/ -rw-r--r-- 1 chrisbra chrisbra 12481 Jan 20 2025 %home%chrisbra%.vim%vimrc~ #v- Works as expected. Thanks, Christian -- Death is God's way of telling you not to be such a wise guy. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_use/aa7R3tRl7Zr/fA%2BT%40256bit.org.
