Added config option g:splitopen_set_fzf_keys to enable fzf keybinding.

Disabled by default.
This commit is contained in:
Michael Mandl 2019-10-18 20:57:12 +02:00
parent c170d0779f
commit a2736f4579
3 changed files with 47 additions and 10 deletions

View file

@ -1,8 +1,13 @@
command -nargs=1 SplitOpen :call splitopen#SplitOpenFile("<args>")
let g:fzf_action = {
\ 'ctrl-s': 'SplitOpen',
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split',
\ 'ctrl-v': 'vsplit' }
if !exists('g:splitopen_set_fzf_keys')
let g:splitopen_set_fzf_keys = 0
endif
if g:splitopen_set_fzf_keys
let g:fzf_action = {
\ 'ctrl-s': 'SplitOpen',
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split',
\ 'ctrl-v': 'vsplit' }
endif