diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 4e3cde5..a246081 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -1325,8 +1325,12 @@ function! vimwiki#base#goto_index(wnum, ...) "{{{ let idx = 0 endif - if a:0 + if a:0 == 1 let cmd = 'tabedit' + elseif a:0 == 2 + let cmd = 'sp' + elseif a:0 == 3 + let cmd = 'vsp' else let cmd = 'edit' endif