# Disable visually italicizing characters in \textit when using LaTeX-Suite

I am using Vim + LaTeX-Suite plugin to write LaTeX source file. I noticed that LaTeX-Suite would automatically italicize characters in \textit (which made text inside almost illegible) and bold characters in \textbf (which bolded text inside).

So is there a way to disable this behavior?

• May be a workaround is to change the font. – Manuel Apr 25 '14 at 12:17
• @Manuel Thanks. But all default fonts that is available in Vim has "oblique" font style. Are you suggesting to install new fonts? – Naitree Apr 25 '14 at 14:07
• I mean, I use Menlo, and its italics are absolutely readable. I don't know how vim works, but I thought that you would have all the system fonts available. – Manuel Apr 25 '14 at 18:49
• @Manuel I've found alternative on Windows, Meslo LG. Thanks for information. – Naitree Apr 26 '14 at 6:55
• You don't need to use the exact one it was just a suggestion, that may be you should look for a new font :P – Manuel Apr 26 '14 at 9:07

You can edit the highlight for texItalStyle and texBoldStyle. I prefer to simply clear them by doing:

hi clear texItalStyle
hi clear texBoldStyle


You can find the highlight group of the text under the cursor by running the mapping provided here.

• Is there a way to make this permanent in the .vimrc file? – nalyd88 Feb 7 at 9:22
• @nalyd88 yeah, just paste it there :) – philix Feb 7 at 9:35
• For some reason that isn't working for me. The only way it removes the highlight is if I type into vim when the file is open. – nalyd88 Feb 7 at 16:01
• Thanks for the info btw. This really helped me. – nalyd88 Feb 7 at 16:02
• I think it was getting overwritten by the default tex syntax. Adding the commands you show to ~/.vim/after/syntax/tex.vim worked. – nalyd88 Feb 7 at 19:18