mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 06:07:42 +00:00
[vim] Refocus MacVim window
This commit is contained in:
parent
b4a05ff27e
commit
f41de932d6
@ -193,9 +193,11 @@ function! s:popd(dict)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:xterm_launcher()
|
function! s:xterm_launcher()
|
||||||
return printf('xterm -T [fzf]'
|
let fmt = 'xterm -T "[fzf]" -bg "\%s" -fg "\%s" -geometry %dx%d+%d+%d -e bash -ic %%s'
|
||||||
\ .' -bg "\%s" -fg "\%s"'
|
if has('gui_macvim')
|
||||||
\ .' -geometry %dx%d+%d+%d -e bash -ic %%s',
|
let fmt .= '; osascript -e "tell application \"MacVim\" to activate"'
|
||||||
|
endif
|
||||||
|
return printf(fmt,
|
||||||
\ synIDattr(hlID("Normal"), "bg"), synIDattr(hlID("Normal"), "fg"),
|
\ synIDattr(hlID("Normal"), "bg"), synIDattr(hlID("Normal"), "fg"),
|
||||||
\ &columns, &lines/2, getwinposx(), getwinposy())
|
\ &columns, &lines/2, getwinposx(), getwinposy())
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user