Remove option 2 of 'auto_toc'

It doesn't really work for :VimwikiAll2HTML
This commit is contained in:
EinfachToll
2014-08-18 09:35:52 +02:00
parent 502212b58d
commit 2dd9a153bc
3 changed files with 8 additions and 16 deletions

View File

@ -617,7 +617,7 @@ nnoremap <silent><buffer> <Plug>VimwikiRemoveHeaderLevel :
" AUTOCOMMANDS {{{
function! s:toc_html()
if VimwikiGet('auto_toc') >= 2 && VimwikiGet('auto_export') == 0
if VimwikiGet('auto_toc')
call vimwiki#base#table_of_contents(0)
endif
if VimwikiGet('auto_export')
@ -626,7 +626,7 @@ function! s:toc_html()
endif
endfunction
if VimwikiGet('auto_export') || VimwikiGet('auto_toc') >= 2
if VimwikiGet('auto_export') || VimwikiGet('auto_toc')
augroup vimwiki
au BufWritePost <buffer> call s:toc_html()
augroup END