I have the following setting in my .vimrc for highlight long lines (>79) for python files
augroup vimrc_autocmds
autocmd!
autocmd FileType python,rst highlight Excess ctermbg=DarkGrey guibg=Black
autocmd FileType python,rst match Excess /\%79v.*/
autocmd FileType python,rst set nowrap
augroup END
By some reason Vim highlights also other files (like .robot).
How can I fix this?
set cc=80
toftplugin/python.vim
andftplugin/rst.vim
. Much better than relying onautocmd
s.