Fixed vimtex_toc stuff

This commit is contained in:
Karl Yngve Lervåg 2015-03-08 17:18:37 +01:00
parent 71e50ad96d
commit e906ceca5a
3 changed files with 5 additions and 5 deletions

View File

@ -61,7 +61,7 @@ function! vimtex#toc#open() " {{{1
let b:calling_file = calling_file
let b:calling_line = calling_line
setlocal filetype=latextoc
setlocal filetype=vimtex_toc
endfunction
function! vimtex#toc#toggle() " {{{1

View File

@ -4,7 +4,7 @@
" Email: karl.yngve@gmail.com
"
function! vimtextoc#init() " {{{1
function! vimtex_toc#init() " {{{1
if !exists('b:toc') | return | endif
" Fill TOC entries
@ -18,7 +18,7 @@ function! vimtextoc#init() " {{{1
endfunction
" }}}1
function! vimtextoc#fold_level(lnum) " {{{1
function! vimtex_toc#fold_level(lnum) " {{{1
let pline = getline(a:lnum - 1)
let cline = getline(a:lnum)
let nline = getline(a:lnum + 1)
@ -43,12 +43,12 @@ function! vimtextoc#fold_level(lnum) " {{{1
endfunction
" }}}1
function! vimtextoc#fold_text() " {{{1
function! vimtex_toc#fold_text() " {{{1
return getline(v:foldstart)
endfunction
" }}}1
function! vimtextoc#refresh() " {{{1
function! vimtex_toc#refresh() " {{{1
if !exists('b:toc') | return | endif
" Fill TOC entries