You are not logged in.

#1 2016-01-30 09:27:14

iks
Member
Registered: 2016-01-30
Posts: 4

[Solved] Can't move focus on Vim after opening netrw

Only on Arch Linux, when I split vim's window vertically and open netrw on the right side, my cursor's focus moves to the left side and I can't move my cursor to the right side with "Ctrl-w l".
The reproductive steps:

1. Execute "vim ." in a directory with some file (netrw will open because you're editing directory)
2. Open an exisiting file using netrw
3. Split window vertically by ":vs"
4. Move focus to the right side by "Ctrl-w l"
5. Open netrw on the right side by ":Explore"
6. Somehow the focus moves to the left side and you can't move focus to the right side by "Ctrl-w l" anymore.

This issue happens even if my .vimrc has only "set nocompatible". My vim's version is 7.4.1101.
Note that this does not happen on CentOS and Ubuntu. Can you reproduce this issue? Do you know how to solve this?

Last edited by iks (2016-01-30 18:26:01)

Offline

#2 2016-01-30 09:50:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Can't move focus on Vim after opening netrw

Cannot reproduce. What terminal are you using and are you setting a TERM in one of your shell initialisation files?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-01-30 09:57:34

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [Solved] Can't move focus on Vim after opening netrw

I can reproduce the issue!

I tried the following options:

* Directly within urxvt
* tmux running inside urxvt
* tmux running inside a virtual console

Moving to "Applications and Desktop Environments".

Last edited by x33a (2016-01-30 09:59:21)

Offline

#4 2016-01-30 10:32:57

iks
Member
Registered: 2016-01-30
Posts: 4

Re: [Solved] Can't move focus on Vim after opening netrw

jasonwryan wrote:

Cannot reproduce. What terminal are you using and are you setting a TERM in one of your shell initialisation files?

My terminal is urxvt and $TERM is rxvt-unicode-256color. It's also reproduced on xterm.

x33a wrote:

I can reproduce the issue!

I'm glad that it's also reproductive for you.

Offline

#5 2016-01-30 15:38:15

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [Solved] Can't move focus on Vim after opening netrw

@iks: what is the output of the following command?

$ pacman -Qi vim-netrw

It seems that there are actually two packages that provide two different versions of netrw:

  • extra/vim-runtime, that provides netrw v154

  • community/vim-netrw, which provides netrw v150

The issue occurs only with netrw v154, at least for me, while netrw v150 works fine. I don't know if there is a bug in the newer version, but this issue makes me wonder why there is a separate package for netrw if it is already provided by vim-runtime.

--edit: Oh, and welcome to the forums smile

Last edited by mauritiusdadd (2016-01-30 15:39:03)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#6 2016-01-30 18:25:42

iks
Member
Registered: 2016-01-30
Posts: 4

Re: [Solved] Can't move focus on Vim after opening netrw

mauritiusdadd wrote:

@iks: what is the output of the following command?

It was:

error: package 'vim-netrw' was not found

So my netrw is v154 provided by extra/vim-runtime.
The issue didn't happen when I installed v150 provided by vim-netrw, however it raised following error and I gave up to use it.

Error detected while processing function <SNR>58_NetrwBrowseChgDir[76]..<SNR>58_NetrwOptionRes

But changing version of netrw is a good idea.
Finally I changed my vimrc to use https://github.com/vim-scripts/netrw.vim, which is v142.
While it's a little old, it worked fine and had no error.

mauritiusdadd wrote:

Oh, and welcome to the forums

Thank you! I felt this place is very helpful.

Offline

Board footer

Powered by FluxBB