Netrw: pressing `-` jumps to a different window

瀏覽次數:27 次
跳到第一則未讀訊息

Nicola

未讀,
2015年12月12日 上午11:39:292015/12/12
收件者:vim...@googlegroups.com
I have encountered the following problem: when I open netrw in a split window,
pressing `-` (zero or more times) to go up in the directory tree makes the
cursor jump to a different window. Besides, when this happens, mappings like
`ctrl-w l` stop working. I have to close all but the current window to make
them functional again. I can reproduce this with a fairly minimal vimrc:

set nocompatible
filetype on
filetype plugin on
filetype indent on

Note that I use Pathogen, so the above does not load my plugins.

Steps to reproduce:

1. Open Vim.
2. :Ex and open a file (it is important that you use :Ex).
2. Split the window vertically and move to the right split (i.e., the
new split).
3. :Ex
4. Press - (possibly several times).

Sometimes the cursor jumps even without pressing `-`.

This seems to happen when I open netrw in different splits at different
times, as in the steps above. Can you suggest a fix?

Using Vim 7.4.963 on OS X.

Nicola





Charles Campbell

未讀,
2015年12月14日 下午4:32:032015/12/14
收件者:vim...@googlegroups.com
Hello!

Thank you for your report. I'm planning on an overhaul of how netrw
handles positioning upon return -- so hopefully this issue will go
away. Might be awhile, though.

Regards,
Chip Campbell

回覆所有人
回覆作者
轉寄
0 則新訊息