Give vimwiki#diary#make_note similar functionality

This commit is contained in:
Daniel Etrata 2017-11-06 21:08:52 -06:00 committed by Michael F. Schönitzer
parent 02e32489d7
commit b6d47e894d

View File

@ -174,8 +174,14 @@ function! vimwiki#diary#make_note(wnum, ...) "{{{
call vimwiki#path#mkdir(VimwikiGet('path', idx).VimwikiGet('diary_rel_path', idx)) call vimwiki#path#mkdir(VimwikiGet('path', idx).VimwikiGet('diary_rel_path', idx))
if a:0 && a:1 == 1 if a:0
let cmd = 'tabedit' if a:1 == 1
let cmd = 'tabedit'
elseif a:2 == 2
let cmd = 'split'
elseif a:3 == 3
let cmd = 'vsplit'
endif
else else
let cmd = 'edit' let cmd = 'edit'
endif endif