vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 7c5935b9ba1b903775e24f84740cfeb37961ebcd
parent f96d0c26d3711740bd93fc5e065e53db52b18edc
Author: EinfachToll <istjanichtzufassen@googlemail.com>
Date:   Tue, 15 May 2018 21:48:58 +0200

Do init s:vimwiki_autowriteall_saved, but perhaps with the default value

Ref #492

Diffstat:
Mplugin/vimwiki.vim | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim @@ -14,6 +14,13 @@ let s:old_cpo = &cpo set cpo&vim +if exists('g:vimwiki_autowriteall') + let s:vimwiki_autowriteall_saved = g:vimwiki_autowriteall +else + let s:vimwiki_autowriteall_saved = 1 +endif + + " this is called when the cursor leaves the buffer function! s:setup_buffer_leave() " don't do anything if it's not managed by Vimwiki (that is, when it's not in