let s:plugin_path = escape(expand(':p:h:h'), '\') execute 'pyfile ' . s:plugin_path . '/taskwiki/taskwiki.py' augroup taskwiki " when saving the file sync the tasks from vimwiki to TW autocmd! execute "autocmd BufWrite *.".expand('%:e')." py WholeBuffer.update_to_tw()" augroup END command! TaskWikiProjects :py Splits.projects() command! TaskWikiProjectsSummary :py Splits.summary() command! -range TaskWikiInfo :,py SelectedTasks().info() command! -range TaskWikiLink :,py SelectedTasks().link() command! -range TaskWikiDelete :,py SelectedTasks().delete() command! -range -nargs=* TaskWikiMod :,py SelectedTasks().modify()