aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/auto_undodir.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-14 13:23:30 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-14 13:23:30 +1300
commit8e390be202c38979bdd1c3631f3cda01fb851fdd (patch)
treee015c69ded03a273ee1eb8acf36f24ceaae3273e /vim/plugin/auto_undodir.vim
parent011c97960190054ec29cdebd7c87cc4a2bf750d5 (diff)
downloaddotfiles-8e390be202c38979bdd1c3631f3cda01fb851fdd.tar.gz
dotfiles-8e390be202c38979bdd1c3631f3cda01fb851fdd.zip
Correct stray elseif in auto_undodir.vim
This was causing the following error on load: > Error detected while processing /home/tom/.vim/plugin/auto_undodir.vim: > line 48: > E580: :endif without :if: endif
Diffstat (limited to 'vim/plugin/auto_undodir.vim')
-rw-r--r--vim/plugin/auto_undodir.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/auto_undodir.vim b/vim/plugin/auto_undodir.vim
index 0cd54cd0..4382fe18 100644
--- a/vim/plugin/auto_undodir.vim
+++ b/vim/plugin/auto_undodir.vim
@@ -36,7 +36,7 @@ if !isdirectory(expand(s:undodir))
" Failing that, use an OS-dependent command
" (Fortunately, Unix and Windows are the only OS types in the world)
elseif has('*shellescape')
- elseif has('unix')
+ if has('unix')
silent! execute '!mkdir -m 0700 -p '
\ . shellescape(expand(s:undodir))
elseif has('win32') || has('win64')