Sunday, March 25, 2012

Re: netrw and line highlighting

On Sun, Mar 25, 2012 at 06:25:29PM -0400, Aaron Bohannon wrote:
> Hi,

> I started using netrw in tree mode. In tree mode (and all of its
> other single-column modes), it highlights the entire line containing
> the cursor. That's cool, but the problem is that when I hit 'o' or
> 't' to open a file, the behavior of highlighting the entire line
> persists in the newly opened window/tab. That's not so cool. I
> should say it *sometimes* persists. It usually doesn't when I hit 'o'
> but it usually does when I use 't' to open the file in new a tab. I
> guess there is a bug in vim or netrw, but I imagine I could solve the
> issue with my own autocommand if I knew how to manually disable the
> highlighting of the line. Can anyone tell me how to do this?

current line gets highlighted with the relatively new feature,
'cursorline' -- you turn it off with 'set nocursorline'

before you go clogging your vim with autocommands, wait just a
bit -- i know from personal experience charles wants to know
when netrw is overriding ppl's settings and will work with you
to get it fixed until it is

if you just patch your vim with an autocommand, you fix one vim
-- if you work with charles to fix netrw, everyone gets a better
vim

sc

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

Post a Comment