aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-27 12:44:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-27 12:44:26 +1200
commit9fe772970cf83c13c1ce407272626fe3300ac6c9 (patch)
treed189dfe7b8f5314972ebc00e25a6545ebd8d1eaa /vim
parentComment .tmux.conf more helpfully (diff)
downloaddotfiles-9fe772970cf83c13c1ce407272626fe3300ac6c9.tar.gz
dotfiles-9fe772970cf83c13c1ce407272626fe3300ac6c9.zip
Explain double-slashes on file settings clearly
Including fixing a copy-paste comment error
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 426394ba..3a18772f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -30,10 +30,10 @@ endif
" Use backup features if on a UNIX-like system and not using sudo(8)
if !strlen($SUDO_USER) && has('unix')
- " Keep backups with a .bak extension in ~/.vim/undo; the double-slash at
+ " Keep backups with a .bak extension in ~/.vim/backup; the double-slash at
" the end of the directory is supposed to prod Vim into keeping the full
" path to the file in its backup filename to avoid collisions, but I don't
- " think it actually works
+ " think it actually works for backups, just undo and swap files
set backup
set backupext=.bak
set backupdir^=~/.vim/backup//
@@ -315,7 +315,7 @@ if !strlen($SUDO_USER) && has('unix')
" Use swap files but keep them in ~/.vim/swap; the double-slash at the end
" of the directory prods Vim into keeping the full path to the file in its
- " undo filename to avoid collisions
+ " undo filename to avoid collisions; the same thing works for undo files
set swapfile
set directory^=~/.vim/swap//
@@ -391,7 +391,7 @@ if !strlen($SUDO_USER) && has('unix') && has('persistent_undo')
" Keep per-file undo history in ~/.vim/undo; the double-slash at the end
" of the directory prods Vim into keeping the full path to the file in its
- " undo filename to avoid collisions
+ " undo filename to avoid collisions; the same thing works for swap files
set undofile
set undodir^=~/.vim/undo//