aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/auto_backupdir.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-13 22:28:14 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-13 22:28:14 +1300
commitac8d360e59896c11816f6a1edaaed647f71f6796 (patch)
tree9aee0daea29566a6d28706dcb8f4ac390536e6c5 /vim/plugin/auto_backupdir.vim
parentMerge branch 'feature/vim-ftdetect' into develop (diff)
parentStrip trailing whitespace (diff)
downloaddotfiles-ac8d360e59896c11816f6a1edaaed647f71f6796.tar.gz
dotfiles-ac8d360e59896c11816f6a1edaaed647f71f6796.zip
Merge branch 'feature/trailing-space' into develop
* feature/trailing-space: Strip trailing whitespace
Diffstat (limited to 'vim/plugin/auto_backupdir.vim')
-rw-r--r--vim/plugin/auto_backupdir.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/plugin/auto_backupdir.vim b/vim/plugin/auto_backupdir.vim
index d15c3150..6f5aca97 100644
--- a/vim/plugin/auto_backupdir.vim
+++ b/vim/plugin/auto_backupdir.vim
@@ -18,7 +18,7 @@ else
" This is imperfect in that it will break if you have a backslashed comma in
" the first component of your &runtimepath, but if you're doing that, you
" probably already have way bigger problems
- let s:backupdir
+ let s:backupdir
\ = strpart(&runtimepath, 0, stridx(&runtimepath, ','))
\ . '/backup'
endif
@@ -33,10 +33,10 @@ if !isdirectory(expand(s:backupdir))
" Failing that, use an OS-dependent command
" (Fortunately, Unix and Windows are the only OS types in the world)
elseif has('unix')
- silent! execute '!mkdir -m 0700 -p '
+ silent! execute '!mkdir -m 0700 -p '
\ . shellescape(expand(s:backupdir))
elseif has('win32') || has('win64')
- silent! execute '!mkdir '
+ silent! execute '!mkdir '
\ . shellescape(expand(s:backupdir))
endif