[vim] Options to xterm command

This commit is contained in:
Junegunn Choi
2014-06-15 03:18:29 +09:00
parent 0b43f988c7
commit 65c1b53275
2 changed files with 26 additions and 15 deletions

View File

@@ -125,7 +125,9 @@ function! s:execute(dict, command, temps)
call s:pushd(a:dict)
silent !clear
if has('gui_running')
execute "silent !xterm -e bash -ic '".substitute(a:command, "'", "'\"'\"'", 'g')."'"
let xterm_options = get(a:dict, 'xterm_options', get(g:, 'fzf_xterm_options', ''))
execute "silent !xterm ".xterm_options.
\ " -e bash -ic '".substitute(a:command, "'", "'\"'\"'", 'g')."'"
else
execute 'silent !'.a:command
endif