diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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// |