From 48e53ccd0cd616b4a378042bd40d56d375f083ec Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 11 Sep 2016 14:42:56 +0100 Subject: [PATCH] Fix Python tab error highlighting --- after/ftplugin/python.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index 7d904a3..f5a186c 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -15,9 +15,9 @@ setlocal textwidth=0 " 'O' in Normal mode. setlocal formatoptions+=cro -" Set up highlighting of tabs -highlight BadWhitespace ctermbg=red guibg=red -match BadWhitespace /^\t\+/ +" Highlight erroneous tabs +syn match pythonTabError '\t\+' +hi pythonTabError ctermbg=red guibg=red " Set up file encoding setlocal encoding=utf-8