aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-18 13:02:52 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-18 13:02:52 +1300
commit728aef9284ba60d62ed95d13e48f5b4f92f0ed1c (patch)
tree5179096cc153d379380efec6fd26e23a2ef37b3a
parentef57ffcedae62fd65dfb1d9964e981f080057ec8 (diff)
parentd59dd741c1edc02543f5669eda866aa177289d6f (diff)
downloaddotfiles-728aef9284ba60d62ed95d13e48f5b4f92f0ed1c.tar.gz
dotfiles-728aef9284ba60d62ed95d13e48f5b4f92f0ed1c.zip
Merge branch 'feature/vim-plugin' into develop
* feature/vim-plugin: Refactor directory creation in plugins
-rw-r--r--vim/plugin/auto_backupdir.vim8
-rw-r--r--vim/plugin/auto_swapdir.vim8
-rw-r--r--vim/plugin/auto_undodir.vim8
3 files changed, 12 insertions, 12 deletions
diff --git a/vim/plugin/auto_backupdir.vim b/vim/plugin/auto_backupdir.vim
index 17a1a646..1535c486 100644
--- a/vim/plugin/auto_backupdir.vim
+++ b/vim/plugin/auto_backupdir.vim
@@ -34,12 +34,12 @@ if !isdirectory(expand(s:backupdir))
" (Fortunately, Unix and Windows are the only OS types in the world)
elseif has('*shellescape')
if has('unix')
- silent! execute '!mkdir -m 0700 -p '
- \ . shellescape(expand(s:backupdir))
+ let l:mkdir = '!mkdir -m 0700 -p '
elseif has('win32') || has('win64')
- silent! execute '!mkdir '
- \ . shellescape(expand(s:backupdir))
+ let l:mkdir = '!mkdir '
endif
+ silent! execute l:mkdir
+ \ . shellescape(expand(s:backupdir))
endif
endif
diff --git a/vim/plugin/auto_swapdir.vim b/vim/plugin/auto_swapdir.vim
index 7d5940aa..2f9e6d25 100644
--- a/vim/plugin/auto_swapdir.vim
+++ b/vim/plugin/auto_swapdir.vim
@@ -34,12 +34,12 @@ if !isdirectory(expand(s:swapdir))
" (Fortunately, Unix and Windows are the only OS types in the world)
elseif has('*shellescape')
if has('unix')
- silent! execute '!mkdir -m 0700 -p '
- \ . shellescape(expand(s:swapdir))
+ let l:mkdir = '!mkdir -m 0700 -p '
elseif has('win32') || has('win64')
- silent! execute '!mkdir '
- \ . shellescape(expand(s:swapdir))
+ let l:mkdir = '!mkdir '
endif
+ silent! execute l:mkdir
+ \ . shellescape(expand(s:swapdir))
endif
endif
diff --git a/vim/plugin/auto_undodir.vim b/vim/plugin/auto_undodir.vim
index 4382fe18..a38dce02 100644
--- a/vim/plugin/auto_undodir.vim
+++ b/vim/plugin/auto_undodir.vim
@@ -37,12 +37,12 @@ if !isdirectory(expand(s:undodir))
" (Fortunately, Unix and Windows are the only OS types in the world)
elseif has('*shellescape')
if has('unix')
- silent! execute '!mkdir -m 0700 -p '
- \ . shellescape(expand(s:undodir))
+ let l:mkdir = '!mkdir -m 0700 -p '
elseif has('win32') || has('win64')
- silent! execute '!mkdir '
- \ . shellescape(expand(s:undodir))
+ let l:mkdir = '!mkdir '
endif
+ silent! execute l:mkdir
+ \ . shellescape(expand(s:undodir))
endif
endif