From 6b5c633fc8d109c8a966ce4dba9497f8be32fe09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 20 Dec 2016 21:25:25 +0100 Subject: [PATCH] Fixed silly error --- after/syntax/tex.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim index f54f647..e213012 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -4,8 +4,11 @@ " Email: karl.yngve@gmail.com " -if exists('b:current_syntax') | finish | endif -let b:current_syntax = 'tex' +if !exists('b:current_syntax') + let b:current_syntax = 'tex' +elseif b:current_syntax !=# 'tex' + finish +endif " Perform spell checking when there is no syntax " - This will enable spell checking e.g. in toplevel of included files