mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
vim: Execute update_to_tw upon file save
This commit is contained in:
parent
bd94f48bd6
commit
832dfa40b7
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue