From 65c1b5327539c6d72392a90ab710443a04fd4e21 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 15 Jun 2014 03:18:29 +0900 Subject: [vim] Options to xterm command --- plugin/fzf.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/fzf.vim b/plugin/fzf.vim index bf0e2b93..78d8c2e3 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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 -- cgit v1.2.3