aboutsummaryrefslogtreecommitdiffstats
path: root/open.vim
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2011-11-21 21:31:02 +0100
committerPeter Odding <peter@peterodding.com>2011-11-21 21:31:02 +0100
commitd7b3e0cb4d4343316d53346b1cf7b77b32ed58a9 (patch)
tree3b91081ca88124efd3b1e0a081d31b163761e5e5 /open.vim
parent362ec9c9391decf5440b1a14e8a84a71168158cd (diff)
downloadvim-easytags-d7b3e0cb4d4343316d53346b1cf7b77b32ed58a9.tar.gz
Work around the existence of &shellslash
(see inline comment about misuse of features :-\)
Diffstat (limited to 'open.vim')
-rw-r--r--open.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/open.vim b/open.vim
index 30d2aa3..1fb24e0 100644
--- a/open.vim
+++ b/open.vim
@@ -1,10 +1,10 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 18, 2011
+" Last Change: November 21, 2011
" URL: http://peterodding.com/code/vim/misc/
if !exists('s:version')
- let s:version = '1.0'
+ let s:version = '1.1'
let s:enoimpl = "open.vim %s: %s() hasn't been implemented for your platform! If you have suggestions, please contact peter@peterodding.com."
let s:handlers = ['gnome-open', 'kde-open', 'exo-open', 'xdg-open']
endif
@@ -15,7 +15,7 @@ function! xolox#misc#open#file(path, ...)
call xolox#shell#open_with_windows_shell(a:path)
catch /^Vim\%((\a\+)\)\=:E117/
let command = '!start CMD /C START "" %s'
- silent execute printf(command, shellescape(a:path))
+ silent execute printf(command, xolox#misc#escape#shell(a:path))
endtry
return
elseif has('macunix')