mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
[vim] Update default launcher for GVim (#212)
Code submitted by @lydell
This commit is contained in:
parent
22ae7adac8
commit
09d0ac0347
@ -22,7 +22,6 @@
|
|||||||
" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
let s:default_height = '40%'
|
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:fzf_go = expand('<sfile>:h:h').'/bin/fzf'
|
||||||
let s:install = expand('<sfile>:h:h').'/install'
|
let s:install = expand('<sfile>:h:h').'/install'
|
||||||
let s:installed = 0
|
let s:installed = 0
|
||||||
@ -202,6 +201,15 @@ function! s:popd(dict)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
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)
|
function! s:execute(dict, command, temps)
|
||||||
call s:pushd(a:dict)
|
call s:pushd(a:dict)
|
||||||
silent! !clear 2> /dev/null
|
silent! !clear 2> /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user