Saturday, December 12, 2015

Netrw: pressing `-` jumps to a different window

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





--
--
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/d/optout.

No comments:

Post a Comment