Tuesday, May 2, 2017

Re: simple gvimrc color defns lost

On Tue, May 02, 2017 at 10:11:00AM -0700, Rob Retter wrote:
> On Tuesday, May 2, 2017 at 8:15:34 AM UTC-7, Ben Fritz wrote:
>
> > What's the solution then, a VimEnter autocmd? Adding the highlight commands to a colorscheme instead of having them directly in the vimrc?
>
> Yes, that's a very good question. It's really the reason I asked about this puzzling Vim behavior in the first place.
>
> How *does* one set syntax element colors across multiple syntaxes without Vim deciding you were wrong?
>

Rob,

There's a relatively straightforward way to do this documented in the help
under the colorscheme command. Essentially you need to create your own
colorscheme based on the default one, and then load it instead. The machine I'm
on is running an oldish 7.4 version, so I'm not 100% certain that this hasn't
changed, but ':help colorscheme' would be a good place to start.

Regards,
-gREG

--
Greg Vilardi |Technical Lead E-mail:vilardi@panix.com
USnail: 354 Indian Head Rd |Vormittag Associates, Inc. Home:(631)864-1310
Commack, NY 11725 |Ronkonkoma, NY 11779 Cell:(631)627-1448
.sig Version 0.71 I thought, I wrote, I posted.

--
--
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: