From 0d903ee513fc241cb8f8ca03c76d5d0f225d3ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 10 Mar 2015 14:30:40 +0100 Subject: [PATCH] Added extensions to 'suffixes' --- autoload/vimtex.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/autoload/vimtex.vim b/autoload/vimtex.vim index 1916839..e548dd2 100644 --- a/autoload/vimtex.vim +++ b/autoload/vimtex.vim @@ -94,6 +94,29 @@ function! s:init_environment() " {{{1 call vimtex#util#set_default('g:vimtex#data', []) call vimtex#util#set_default('b:vimtex', {}) + " Ensure tex files are prioritized when listing files + for suf in [ + \ '.log', + \ '.aux', + \ '.bbl', + \ '.out', + \ '.blg', + \ '.brf', + \ '.cb', + \ '.dvi', + \ '.fdb_latexmk', + \ '.fls', + \ '.idx', + \ '.ilg', + \ '.ind', + \ '.inx', + \ '.pdf', + \ '.synctex.gz', + \ '.toc', + \ ] + execute 'set suffixes+=' . suf + endfor + " Set some file type specific vim options setlocal suffixesadd+=.tex setlocal commentstring=\%\ %s