Thursday, September 8, 2011

How can I highlight a line in the error window by using script?

Hi there,

I am developing some scripts around Vim's error window (a.k.a. quickfix window), such as doing smart thing to open a file other than the default logic of <CR> key.   One nice feature of the <CR> is that it will highlight the selected line in the error window, which I definitely want the script could do.  However, I searched high and low for this and with little success, and I have to simulate a <CR> (through feedkey) or .cc command in the script to achieve the highlight effect.

Does anybody have idea how to highlight a line in error window using script?

Thanks.

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

No comments: