diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-13 22:26:07 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-13 22:26:07 +1300 |
commit | d30b6a744d9de88bde1a5d4cddf873c867f5c3d2 (patch) | |
tree | 9aee0daea29566a6d28706dcb8f4ac390536e6c5 /vim/plugin/auto_undodir.vim | |
parent | Merge branch 'feature/vim-ftdetect' into develop (diff) | |
download | dotfiles-d30b6a744d9de88bde1a5d4cddf873c867f5c3d2.tar.gz dotfiles-d30b6a744d9de88bde1a5d4cddf873c867f5c3d2.zip |
Strip trailing whitespace
Diffstat (limited to 'vim/plugin/auto_undodir.vim')
-rw-r--r-- | vim/plugin/auto_undodir.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/plugin/auto_undodir.vim b/vim/plugin/auto_undodir.vim index cf8d896a..8e81fde6 100644 --- a/vim/plugin/auto_undodir.vim +++ b/vim/plugin/auto_undodir.vim @@ -21,7 +21,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:undodir + let s:undodir \ = strpart(&runtimepath, 0, stridx(&runtimepath, ',')) \ . '/undo' endif @@ -36,10 +36,10 @@ 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('unix') - silent! execute '!mkdir -m 0700 -p ' + silent! execute '!mkdir -m 0700 -p ' \ . shellescape(expand(s:undodir)) elseif has('win32') || has('win64') - silent! execute '!mkdir ' + silent! execute '!mkdir ' \ . shellescape(expand(s:undodir)) endif |