vim: Execute update_to_tw upon file save

This commit is contained in:
Tomas Babej 2014-12-31 03:28:34 +01:00
parent bd94f48bd6
commit 832dfa40b7

View file

@ -1,3 +1,8 @@
let s:plugin_path = escape(expand('<sfile>:p:h'), '\')
execute 'pyfile ' . s:plugin_path . '/../autoload/vimwiki_pytasks.py'
exe 'pyfile ' . s:plugin_path . '/../autoload/vimwiki_pytasks.py'
augroup vimwiki_pytasks
" when saving the file sync the tasks from vimwiki to TW
autocmd!
execute "autocmd BufWrite *.".expand('%:e')." python update_to_tw()"
augroup END