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:
Tomas Janousek 2020-12-18 16:21:14 +00:00 committed by Tomas Babej
parent 2ab876a80a
commit 792ca80a2b
2 changed files with 1 additions and 1 deletions

View file

@ -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