You are not logged in.
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
Cannot reproduce. What terminal are you using and are you setting a TERM in one of your shell initialisation files?
Offline
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
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.
I can reproduce the issue!
I'm glad that it's also reproductive for you.
Offline
@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
Last edited by mauritiusdadd (2016-01-30 15:39:03)
Offline
@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.
Oh, and welcome to the forums
Thank you! I felt this place is very helpful.
Offline