aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-25 12:25:27 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-25 12:30:40 +1300
commit5af0bddaaa20478ddbf318424ce7906a4c1565e3 (patch)
tree07c1f32fb9a36976071edeb0064c376ad9e75608
parentDefine b:undo_indent for Perl buffers (diff)
downloaddotfiles-5af0bddaaa20478ddbf318424ce7906a4c1565e3.tar.gz
dotfiles-5af0bddaaa20478ddbf318424ce7906a4c1565e3.zip
Remove vim-tiny workaround for 'undodir' setting
Commit 575f00d changed the setting for 'undodir' and similar path-based settings to set the values conditionally based on the operating system being used, while still setting them sensibly for "tiny" builds of Vim on Unix, which skips all :if blocks. This isn't necessary for 'undodir', because a tiny build of Vim won't have the persistent_undo feature required for the option to exist at all, so we can make this particular setting a little less awkward. The 'backupdir' and 'directory' settings, however, need to keep their existing structure to remain interoperable.
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 03844def..25fe4e05 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -198,10 +198,10 @@ silent! set ttymouse=
" Keep undo files, hopefully in a dedicated directory
if has('persistent_undo')
set undofile
- set undodir^=~/.vim/cache/undo//
if has('win32') || has('win64')
- set undodir-=~/.vim/cache/undo//
set undodir^=~/vimfiles/cache/undo//
+ else
+ set undodir^=~/.vim/cache/undo//
endif
endif