From 5af0bddaaa20478ddbf318424ce7906a4c1565e3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 25 Nov 2018 12:25:27 +1300 Subject: 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. --- vim/vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim') 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 -- cgit v1.2.3