Added config option g:splitopen_set_fzf_keys to enable fzf keybinding.
Disabled by default.
This commit is contained in:
parent
c170d0779f
commit
a2736f4579
3 changed files with 47 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue