Handle all combinations of 'autowriteall' and 'hidden'

Ref #445
This commit is contained in:
EinfachToll
2018-03-16 21:39:24 +01:00
parent 4bacbe0000
commit 8009e5c7cf
2 changed files with 21 additions and 13 deletions

View File

@ -2731,8 +2731,12 @@ Default: 2
------------------------------------------------------------------------------
*g:vimwiki_autowriteall*
In Vim 'autowriteall' is a global setting. With g:vimwiki_autowriteall Vimwiki
makes it local to its buffers.
Automatically save a modified wiki buffer when switching wiki pages. Has the
same effect like setting the Vim option 'autowriteall', but it works for wiki
files only, while the Vim option is global.
Hint: if you're just annoyed that you have to save files manually to switch
wiki pages, consider setting the Vim option 'hidden' which makes that modified
files don't need to be saved.
Value Description~
0 autowriteall is off