From e906ceca5ad3758f26613b152a9e649e6da0de6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 8 Mar 2015 17:18:37 +0100 Subject: [PATCH] Fixed vimtex_toc stuff --- autoload/vimtex/toc.vim | 2 +- autoload/vimtex_toc.vim | 8 ++++---- syntax/{latextoc.vim => vimtex_toc.vim} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename syntax/{latextoc.vim => vimtex_toc.vim} (100%) diff --git a/autoload/vimtex/toc.vim b/autoload/vimtex/toc.vim index e74bd54..ebd308c 100644 --- a/autoload/vimtex/toc.vim +++ b/autoload/vimtex/toc.vim @@ -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 diff --git a/autoload/vimtex_toc.vim b/autoload/vimtex_toc.vim index 4aebfbb..aa65d15 100644 --- a/autoload/vimtex_toc.vim +++ b/autoload/vimtex_toc.vim @@ -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 diff --git a/syntax/latextoc.vim b/syntax/vimtex_toc.vim similarity index 100% rename from syntax/latextoc.vim rename to syntax/vimtex_toc.vim