diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2014-06-15 03:18:29 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2014-06-15 03:18:29 +0900 |
| commit | 65c1b5327539c6d72392a90ab710443a04fd4e21 (patch) | |
| tree | 6a9f2768880318e32c24368a662152cd7cb65bdc /plugin/fzf.vim | |
| parent | 0b43f988c7ffd587835875bf12e8d312ab52d002 (diff) | |
| download | fzf-65c1b5327539c6d72392a90ab710443a04fd4e21.tar.gz | |
[vim] Options to xterm command
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 4 |
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 |
