2020-06-29 19:33:24 +00:00
|
|
|
command! -complete=file -nargs=1 SplitOpen :call splitopen#SplitOpenFile("<args>")
|
2019-10-30 21:40:30 +00:00
|
|
|
command! Split :call splitopen#SplitFile()
|
2019-10-18 14:17:49 +00:00
|
|
|
|
2019-10-20 13:39:32 +00:00
|
|
|
" map left-split / right-split file extensions
|
|
|
|
if !exists("g:splitopen_extensions")
|
|
|
|
let g:splitopen_extensions = {
|
|
|
|
\ "h": "cpp",
|
|
|
|
\ "H": "CPP",
|
|
|
|
\ }
|
|
|
|
endif
|
|
|
|
|
2019-10-18 18:57:12 +00:00
|
|
|
if !exists('g:splitopen_set_fzf_keys')
|
|
|
|
let g:splitopen_set_fzf_keys = 0
|
|
|
|
endif
|
2019-10-18 14:17:49 +00:00
|
|
|
|
2019-10-18 18:57:12 +00:00
|
|
|
if g:splitopen_set_fzf_keys
|
|
|
|
let g:fzf_action = {
|
|
|
|
\ 'ctrl-s': 'SplitOpen',
|
|
|
|
\ 'ctrl-t': 'tab split',
|
|
|
|
\ 'ctrl-x': 'split',
|
2019-10-20 13:39:32 +00:00
|
|
|
\ 'ctrl-v': 'vsplit',
|
|
|
|
\ }
|
2019-10-18 18:57:12 +00:00
|
|
|
endif
|