vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 02e32489d7652189026c1d4b48bf88b6da98a739
parent 95d4c095d0a615c9586df49d3bc0eedec8e4ea4d
Author: Daniel <danetrata@gmail.com>
Date:   Sun, 18 Dec 2016 13:02:51 -0600

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)

Diffstat:
Mautoload/vimwiki/base.vim | 14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim @@ -1325,12 +1325,14 @@ function! vimwiki#base#goto_index(wnum, ...) "{{{ let idx = 0 endif - if a:1 == 1 - let cmd = 'tabedit' - elseif a:1 == 2 - let cmd = 'split' - elseif a:1 == 3 - let cmd = 'vsplit' + if a:0 + if a:1 == 1 + let cmd = 'tabedit' + elseif a:1 == 2 + let cmd = 'split' + elseif a:1 == 3 + let cmd = 'vsplit' + endif else let cmd = 'edit' endif