mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
syntax: Move setl viewoptions to ftplugin
Doesn't belong in syntax, and shouldn't be set unless we need it for mkview, so move it next to that mkview. (BTW, it's a bit confusing that we use setlocal for a global option. Are we hoping it's going to be made local one day? If not, we may as well change it to `set` to avoid confusion.)
This commit is contained in:
parent
2ab876a80a
commit
792ca80a2b
2 changed files with 1 additions and 1 deletions
|
@ -41,6 +41,7 @@ augroup taskwiki
|
|||
autocmd BufWrite <buffer> TaskWikiBufferSave
|
||||
" Save and load the view to preserve folding, if desired
|
||||
if !exists('g:taskwiki_dont_preserve_folds')
|
||||
setlocal viewoptions-=options
|
||||
autocmd BufWinLeave <buffer> mkview
|
||||
autocmd BufWinEnter <buffer> silent! loadview
|
||||
autocmd BufWinEnter <buffer> silent! doautocmd SessionLoadPost
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue