commit 1c88deeee0682b508a419640f4eb353ed014f755
parent 5faf884dc60c3ebd27734fe5f649acfb92025af8
Author: Maxim Kim <habamax@gmail.com>
Date: Tue, 18 Jun 2013 18:43:03 +0400
Issue 415: No-folding configuration ignored.
When g:vimwiki_folding is set to '' there should be no folding no matter
what foldmethod you have in your .vimrc.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim
@@ -208,6 +208,9 @@ function! s:setup_buffer_enter() "{{{
elseif g:vimwiki_folding == 'syntax'
setlocal fdm=syntax
setlocal foldtext=VimwikiFoldText()
+ else
+ setlocal fdm=manual
+ exe "normal zE"
endif
" And conceal level too.