Wednesday, September 4, 2013

Re: Set different highlighting for Search versus current quickfix error

On Wednesday, September 4, 2013 6:44:24 PM UTC-4, Tony Mechelynck wrote:
>On 04/09/13 23:51, Paul wrote:
>> The GUI highlighting for the current quickfix item seems to be the
>> same as whatever I set the Search group to. Is there a way to have
>> a different guibg color?
>
> ...With me it doesn't: I just did a :helpgrep, and the current quickfix
> item didn't get _any_ highlighting: with the cursor on it,
>
> :echomsg synIDattr(synID(line("."),col("."),0),"name")
> synIDattr(synIDtrans(synID(line("."),col("."),0)),"name")
> synIDattr(synID(line("."),col("."),1),"name")
> synIDattr(synIDtrans(synID(line("."),col("."),1)),"name")
>
> ...didn't display anything. Or if it did, it was because there was
> some highlighted syntax item (such as between |bars|) just under the
> cursor.
>
> I'm using gvim 7.4.16 (Huge) with GTK2/GNOME2 GUI.

I'm using vim 7.3 on Windows 7. When I issue:

:echomsg synIDattr(synID(line("."),col("."),0),"name")
:echomsg synIDattr(synIDtrans(synID(line("."),col("."),0)),"name")
:echomsg synIDattr(synID(line("."),col("."),1),"name")
:echomsg synIDattr(synIDtrans(synID(line("."),col("."),1)),"name")

I get:

qfFileName
Directory
qfFileName
Directory

It's interesting that you don't see the current quickfix item highlighted. I thought that maybe I set something to turn on quickfix highlighting, but I can't seem to find the switch. I searched the web and the quickfix help to see if quickfix is *suppose* to highlight the current item by default, but didn't find indications of that either.

--
--
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/groups/opt_out.

No comments:

Post a Comment