Define left- and right-hand filetypes via global config variable
This commit is contained in:
parent
b842eb4a48
commit
cd2d198447
2 changed files with 49 additions and 8 deletions
|
@ -1,5 +1,13 @@
|
|||
command -nargs=1 SplitOpen :call splitopen#SplitOpenFile("<args>")
|
||||
|
||||
" map left-split / right-split file extensions
|
||||
if !exists("g:splitopen_extensions")
|
||||
let g:splitopen_extensions = {
|
||||
\ "h": "cpp",
|
||||
\ "H": "CPP",
|
||||
\ }
|
||||
endif
|
||||
|
||||
if !exists('g:splitopen_set_fzf_keys')
|
||||
let g:splitopen_set_fzf_keys = 0
|
||||
endif
|
||||
|
@ -9,5 +17,6 @@ if g:splitopen_set_fzf_keys
|
|||
\ 'ctrl-s': 'SplitOpen',
|
||||
\ 'ctrl-t': 'tab split',
|
||||
\ 'ctrl-x': 'split',
|
||||
\ 'ctrl-v': 'vsplit' }
|
||||
\ 'ctrl-v': 'vsplit',
|
||||
\ }
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue