diff --git a/ftplugin/tex.vim b/ftplugin/tex.vim index 844c878..2df6e05 100644 --- a/ftplugin/tex.vim +++ b/ftplugin/tex.vim @@ -4,22 +4,15 @@ " Email: karl.yngve@gmail.com " -if exists('g:vimtex_enabled') && !g:vimtex_enabled +if !get(g:, 'vimtex_enabled', 1) finish endif + if exists('b:did_ftplugin') finish endif let b:did_ftplugin = 1 -if exists('g:latex_enabled') - echohl Error - echom "vim-latex has been renamed to vimtex!" - echom "Please see docs for more information (:h vim-latex-namechange)." - echohl None - finish -endif - call vimtex#init() " vim: fdm=marker sw=2