Skip to content
Snippets Groups Projects
Commit 09d0ac03 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[vim] Update default launcher for GVim (#212)

Code submitted by @lydell
parent 22ae7ada
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,6 @@
" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
let s:default_height = '40%'
let s:launcher = 'xterm -e bash -ic %s'
let s:fzf_go = expand('<sfile>:h:h').'/bin/fzf'
let s:install = expand('<sfile>:h:h').'/install'
let s:installed = 0
......@@ -202,6 +201,15 @@ function! s:popd(dict)
endif
endfunction
function! s:xterm_launcher()
return printf('xterm -T [fzf]'
\ .' -bg "\%s" -fg "\%s"'
\ .' -geometry %dx%d+%d+%d -e bash -ic %%s',
\ synIDattr(hlID("Normal"), "bg"), synIDattr(hlID("Normal"), "fg"),
\ &columns, &lines/2, getwinposx(), getwinposy())
endfunction
let s:launcher = function('s:xterm_launcher')
function! s:execute(dict, command, temps)
call s:pushd(a:dict)
silent! !clear 2> /dev/null
......
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