Monday, May 2, 2016

Re: change the font style only for attributes in MacVim

On Saturday, April 30, 2016 at 7:29:01 AM UTC-5, shigg wrote:
> I posted this on Stackoverflow,but didn't get any constructive info,so let me ask this question here.
>
>
> I have the font called Operator Mono Light, and I am using it in Macvim.
>
> My question is in Vim, can I get the font changed to the Italic version of Operator Mono only for attributes like in this picture?
>
> If so, how can I do it?
>
> Thanks for your help in advance.

This is pretty simple, actually.

Find the colorscheme file you are using. If it is a personal colorscheme in your ~/.vim directory somewhere you can just edit it directly. If it's a system-installed one then you will need to make a copy first and put it in ~/.vim/colors.

HTML attributes are linked to the "Type" highlight group. So find the line that starts "hi Type" or "highlight Type" and modify it to include "gui=italic".

If such a line doesn't exist yet, just add one: "hi Type gui=italic".

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: