mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
folds: Preserve folding of the taskwiki files
This commit is contained in:
parent
fe0c91925f
commit
34c4119c64
1 changed files with 4 additions and 1 deletions
|
@ -26,10 +26,13 @@ endif
|
|||
" Execute the main body of taskwiki source
|
||||
execute 'pyfile ' . s:plugin_path . '/taskwiki/taskwiki.py'
|
||||
|
||||
" Update to TW upon saving
|
||||
augroup taskwiki
|
||||
autocmd!
|
||||
" Update to TW upon saving
|
||||
execute "autocmd BufWrite *.".expand('%:e')." TaskWikiBufferSave"
|
||||
" Save and load the view to preserve folding
|
||||
execute "autocmd BufWinLeave *.".expand('%:e')." mkview"
|
||||
execute "autocmd BufWinEnter *.".expand('%:e')." silent loadview"
|
||||
augroup END
|
||||
|
||||
" Global update commands
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue