Skip to content
Snippets Groups Projects
Commit 36702737 authored by Jan Edmund Lazo's avatar Jan Edmund Lazo Committed by Junegunn Choi
Browse files

[vim] Use cmd.exe directly on GVim (launcher='%s') (#787)

parent 6c0fd7f9
No related branches found
No related tags found
No related merge requests found
......@@ -382,7 +382,7 @@ function! s:xterm_launcher()
endfunction
unlet! s:launcher
if has('win32') || has('win64')
let s:launcher = 'cmd.exe /C %s'
let s:launcher = '%s'
else
let s:launcher = function('s:xterm_launcher')
endif
......@@ -411,8 +411,6 @@ function! s:execute(dict, command, temps) abort
let fmt = type(Launcher) == 2 ? call(Launcher, []) : Launcher
if has('unix')
let escaped = "'".substitute(escaped, "'", "'\"'\"'", 'g')."'"
elseif has('win32') || has('win64')
let escaped = '"'.(escaped).'"'
endif
let command = printf(fmt, escaped)
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment