Added the option to open vimwiki in a pane.
1 tabedit 2 split 3 vsplit Similar to opening a tab,:: vimwiki#base#goto_index(v:count1, 1) we can now open a split with:: vimwiki#base#goto_index(v:count1, 2) and a vertical split with:: vimwiki#base#goto_index(v:count1, 3)
This commit is contained in:
parent
95d4c095d0
commit
02e32489d7
@ -1325,12 +1325,14 @@ function! vimwiki#base#goto_index(wnum, ...) "{{{
|
|||||||
let idx = 0
|
let idx = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if a:0
|
||||||
if a:1 == 1
|
if a:1 == 1
|
||||||
let cmd = 'tabedit'
|
let cmd = 'tabedit'
|
||||||
elseif a:1 == 2
|
elseif a:1 == 2
|
||||||
let cmd = 'split'
|
let cmd = 'split'
|
||||||
elseif a:1 == 3
|
elseif a:1 == 3
|
||||||
let cmd = 'vsplit'
|
let cmd = 'vsplit'
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
let cmd = 'edit'
|
let cmd = 'edit'
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user