summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-06-15 03:18:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-06-15 03:18:29 +0900
commit65c1b5327539c6d72392a90ab710443a04fd4e21 (patch)
tree6a9f2768880318e32c24368a662152cd7cb65bdc /plugin
parent0b43f988c7ffd587835875bf12e8d312ab52d002 (diff)
downloadfzf-65c1b5327539c6d72392a90ab710443a04fd4e21.tar.gz
[vim] Options to xterm command
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim4
1 files changed, 3 insertions, 1 deletions
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