aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-20 21:57:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-20 21:58:08 +1200
commit181a03de03d793922033a8362fdc04cffd09d21b (patch)
tree280124246732450a70465f0fd4278e12ff4d51cb
parentRefine colorscheme selection logic (diff)
downloaddotfiles-181a03de03d793922033a8362fdc04cffd09d21b.tar.gz
dotfiles-181a03de03d793922033a8362fdc04cffd09d21b.zip
Remove .vimrc 'backup', 'writebackup' settings
'backup' is off by default, and :help 'writebackup' recommends against disabling it: > WARNING: Switching this option off means that when Vim fails to write > your buffer correctly and then, for whatever reason, Vim exits, you > lose both the original file and what you were writing. Only reset > this option if your file system is almost full and it makes the write > fail (and make sure not to exit Vim until the write was successful). The auto_cache_dirs.vim plugin turns this on if it sensibly can, anyway.
-rw-r--r--vim/vimrc8
1 files changed, 1 insertions, 7 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3ac53e2c..e348b602 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -48,13 +48,7 @@ set backspace+=indent " Spaces from 'audoindent'
set backspace+=eol " Line breaks
set backspace+=start " The start of current insertion
-" Default to no backup files at all, in a way that even ancient/tiny Vims will
-" understand; the auto_cache_dirs.vim plugin will take care of re-enabling
-" this with a 'backupdir' setting
-set nobackup
-set nowritebackup
-
-" If backups are enabled, use a more explicit and familiar backup suffix
+" If a plugin enables backups, use a more explicit and familiar backup suffix
set backupext=.bak
" Allow jumping between windows and tabs to find an open instance of a given