Normally, when I have two panels (windows?) open in vim, I use c-w c-w to switch between them. This suddenly stopped working.
So one would think the problem could be with vim, with the terminal emulator, or with KDE, or some other software getting in the way.
I'm running vim-gtk3 in Debian Netrunner 20.01 which is KDE, and normally using Konsole, but also Terminator in debugging this, on a Thinkpad T410. I've posted at Netrunner forums and Vi&Vim, and it was suggested that I try here.
I’ve been doing the following frequently for the last few months:
In Konsole, I go into VIM (usually through VIFM, but that doesn't seem to matter) and start editing a document. Then I do :new to get another panel, and then :Explore and start editing a second document, switching back and forth between the documents by using c-w (Ctrl-w) twice. Last night, something happened, and now when I press c-w, the first press makes the mouse pointer visible, and the second press makes the vim cursor blink once, but it does not switch panes.
The first time this happened, I did :new, then :Explore, then navigated up, and did /gyatso (a file name) and then I mistyped maybe hitting Ctrl I think, because vim came up with a small panel near the bottom with an error maybe about jump buffer being empty - something being empty anyway. I don’t know whether this typo caused all this, but since this time, I can no longer switch between panels.
Ctrl-W does exist as a KDE shortcut to close applications, but this has not changed. It’s always like that and doesn't normally interfere.
Things I’ve tried:
- Installed Terminator and tried in that, with the same problem, so it’s not just in Konsole
- Renamed the
- Purged and reinstalled vim and everything starting with
- Rebooted Netrunner
- Booted into BunsenLabs (another Debian) and in Terminator, using the same
~/.vim/vimrcfrom Netrunner KDE, it works fine in BunsenLabs.
showkeygives 29 for Ctrl and 17 for u, which I suppose is correct.
- Ran as
~/.config/kglobalshortcutsrcthen logged out and back in
- Created a new user on Netrunner. It vim works fine there.
I don’t recall that I did any upgrades in Synaptic, but maybe I did.
Any help or suggestions how to further troubleshoot this, or just a workaround are greatly appreciated.