Give vimwiki#diary#make_note similar functionality

This commit is contained in:
Daniel Etrata
2017-11-10 21:26:58 +01:00
committed by Michael F. Schönitzer
parent 02e32489d7
commit b6d47e894d
+8 -2
View File
@@ -174,8 +174,14 @@ function! vimwiki#diary#make_note(wnum, ...) "{{{
call vimwiki#path#mkdir(VimwikiGet('path', idx).VimwikiGet('diary_rel_path', idx))
if a:0 && a:1 == 1
let cmd = 'tabedit'
if a:0
if a:1 == 1
let cmd = 'tabedit'
elseif a:2 == 2
let cmd = 'split'
elseif a:3 == 3
let cmd = 'vsplit'
endif
else
let cmd = 'edit'
endif