You are not logged in.

#1 2020-04-13 03:14:14

jghodd
Member
Registered: 2013-02-10
Posts: 158

[SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

Just in the last few days ctrl-b stopped working in vi/vim. Everything else is still working, but the loss of ctrl-b is a royal pain in the a$$. It does still function properly in lxterm, terminal, yakuake, etc., but not in konsole.

Anyone else seeing this and if so, any suggestions as to how to fix it?

Last edited by jghodd (2020-04-13 16:14:00)

Offline

#2 2020-04-13 03:34:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

Does the key work outside of vim in konsole?

You didn't by chance just start using tmux (or change your tmux config)?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-04-13 03:39:55

jghodd
Member
Registered: 2013-02-10
Posts: 158

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

I'm not sure what you're asking about outside of vim in konsole. entering ctrl-b on the command-line does nothing as I'd expect. ctrl-f and ctrl-u do nothing on the command line either, but those work just fine in vi/vim, as does ctrl-d (which will exit the shell on the command line). I'm not a vi / kde / *nix newbie. I've been using vi in *nix environments for 35 years and using konsole as my preferred terminal emulator for at least 10 years.

...and no, I don;t even have tmux installed.

FYI, everything was working fine until a couple of days ago. The only changes since then was a 100+ package update of plasma.

Last edited by jghodd (2020-04-13 03:41:38)

Offline

#4 2020-04-13 03:45:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

I'm not hiding anything in my question - I'm trying to narrow down whether the problem is more likely in vim, or in konsole.  But hey, with all your experience you don't need my help.  So nevermind.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2020-04-13 03:48:26

justamuslimguy
Member
Registered: 2020-04-13
Posts: 6

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

I found out the issue.

In Konsole the "Add Bookmark" command is bound to CTRL + B, which means that Konsole eats the CTRL + B you are sending to vi / vim (it was happening to me in tmux).

You can confirm this if you open the menubar on Konsole, go to "Bookmarks" and you should see the name of the dir where you were trying to send CTRL + B to vi / vim.

Haven't figured out how to turn off this behavior, though. It sucks sad

Offline

#6 2020-04-13 06:16:32

jghodd
Member
Registered: 2013-02-10
Posts: 158

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

@Trilby didn't think was response was out of line. the subject itself is "konsole" - I already knew the issue was konsole, not vi since I pointed out in my initial post that vi was working fine in all other terminal emulators.

@justamuslimguy thanks for the direction, bud. i'll start looking into how to remap "Add Bookmark" too - got to be some way in the keystroke mapping. maybe find some way to change it to shft-ctrl-b or something, or report it as a konsole bug. yeah, it sucks.

Offline

#7 2020-04-13 07:12:20

post-factum
Member
From: /cz
Registered: 2008-09-12
Posts: 149
Website

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

Might be related: https://bugs.archlinux.org/task/66223

I had to remap tmux prefix to ^a in order to work around this.


uname == latest pf-kernel

Offline

#8 2020-04-13 07:59:43

owari
Member
Registered: 2020-04-13
Posts: 1

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

"Add bookmark" could be remapped in Standard Shortcut of KDE's systemsettings5 globally. It seems there is no way to change it in konsole itself.

Last edited by owari (2020-04-13 08:01:29)

Offline

#9 2020-04-13 08:08:02

post-factum
Member
From: /cz
Registered: 2008-09-12
Posts: 149
Website

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

Well, global remapping will work for me. Thanks for the hint.


uname == latest pf-kernel

Offline

#10 2020-04-13 08:57:55

aribao
Member
Registered: 2017-10-19
Posts: 2

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

I had the same issue and global remapping fixed it, thanks a lot for the information!

Offline

#11 2020-04-13 12:44:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

jghodd wrote:

@Trilby didn't think was response was out of line. the subject itself is "konsole" - I already knew the issue was konsole, not vi

Ah, ok, since you referred to me directly, I'll reply rather than just ignoring you.

Bullshit.  Your title also includes vi/vim.  And while you did note that vi worked in other emulators, there was no indication that other programs had trouble in konsole which is precisely the information I requested.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2020-04-13 15:17:03

justamuslimguy
Member
Registered: 2020-04-13
Posts: 6

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

Can confirm that the answer is to go to System Settings > Standard Shortcuts, then remap the "Add Bookmark" shortcut to something other than CTRL + B

This solution and fix are available at the KDE bug tracker: https://bugs.kde.org/show_bug.cgi?id=419981#c6

Offline

#13 2020-04-13 16:12:39

jghodd
Member
Registered: 2013-02-10
Posts: 158

Re: [SOLVED] konsole - vi / vim ctrl-b suddenly no longer working

I can also confirm that the System Settings->Standard Shortcuts workaround works - mapped mine to shft-ctrl-B. Glad to see there's a kde bug report and fix committed.

I'll tag this as SOLVED. Thanks, everyone.

Offline

Board footer

Powered by FluxBB