Vim syntax highlighting weirdness
I have some specific settings for latex highlighting and I am using the indentLine plugin which requires let g:indentLine_fileTypeExclude = ['tex', 'bib']
it to avoid hiding the irritation of the function . Anyway, when I start vim with vim filename.tex
, my vimrc loads correctly, but when I just call vim
and then open the given tex file, it ignores vimrc
.
Any idea what's causing it? Also, let me know what information you need as I am far from what you need.
EDIT: So, I found that for both cases I am in [tex] environment, but if I am in [plaintex] environment then no weirdness happens. If it helps anyone.
2nd EDIT: New development, this is only the first file that seems to ignore the exception for indentLine, the rest are displayed exactly as they should.
source to share
plaintex
is a separate file type in Vim (cp. :help ft-plaintex
), so you need to add it to your IndentLine config:
let g:indentLine_fileTypeExclude = ['tex', 'plaintex', 'bib']
Edit Now this looks like a team order issue. It is difficult to remotely troubleshoot this issue as the exact plugins and their initialization order can be important. Please record the complete log of your Vim session with vim -V20vimlog
. After exiting Vim, review the log file vimlog
to order the commands (but it can be difficult to see what's going on in the potentially extensive list of commands).
The first file simply restart with these problems :e!
.
source to share