diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-25 12:25:27 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-25 12:30:40 +1300 |
commit | 5af0bddaaa20478ddbf318424ce7906a4c1565e3 (patch) | |
tree | 07c1f32fb9a36976071edeb0064c376ad9e75608 | |
parent | Define b:undo_indent for Perl buffers (diff) | |
download | dotfiles-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/vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |