vimwiki

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

commit 293e1f51eecfe93b9e519a5b10e059edf835ac35
parent 7c2ae8a714a71956297cb291dbaefb6a0ce47da3
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 | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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