Friday, February 26, 2010

Re: Unexpected behaviour of File browser in multi-windows environment

Jean Johner wrote:
> Hello,
>
> Please do the following:
> vim (or gvim) file1
> :sp . (opens File browser in a second window)
>
> Click on the black bar below file1 (this should have the effect of
> activating the cursor in file1 to its original location)
>
> It does do that but additionaly, it opens the file below the cursor in
> the File browser (which is not necessarily desired).
>
> This does not occur if you click inside file1 instead of clicking on
> the black bar below file1.
>
I'm guessing about that "black bar below file1" -- I have no black bars,
and the highlighting rather strongly depends on what colorscheme you've
selected -- my guess is you're talking about the vertical spacing
between characters. That space is "owned" by some character cell, and
is not differentiable from the character. Alternative guess: you're
referring to the separator between windows. A click on the window
separator does have the effect you mention so long as the window isn't
full (pick a directory with enough files to fill the display and try
this); however, there's nothing that I can see that vim returns to let
me differentiate between a click on the window separator vs a click on
the file below the cursor.

You can, by the way, turn netrw mouse handling off (see :help
g:netrw_mousemaps).

Regards,
Chip Campbell

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