Thursday, December 25, 2014

Re: how to display different color in vi

On 01:12 Thu 25 Dec , skyworld wrote:
> Hi John,
>
> thanks for your help. I have tried several times, but always failed.
>
> 1. I first tried to set "abc" in my file to be red as:
>
> :match abc /\<yellow\>/
>
> the system seems to be idle and there is no response.
>
> 2. I checked help with "match" command and tried its example:
>
> :highlight abc ctermbg=green guibg=green
> :match abc /\<red\>/

This works perfectly fine for me. Maybe you have a tiny build without
+syntax; check the output of `echo has('syntax')`.

Best regards,
Marcin

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