Bug 183076

Summary: Unwanted pastes at Vim when typing numbers with numpad in command mode
Product: [Applications] konsole Reporter: Leos Junek <leosjunek>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: Beckmann.Maik, milamby
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Leos Junek 2009-02-03 23:32:29 UTC
Version:           4.2.0 (using KDE 4.2.0)
Compiler:          GCC 4.3.1 
OS:                Linux
Installed from:    Gentoo Packages

Konsole version 4.2.0. 

Unable to use numeric keypad in command (i.e. normal) VIM mode. If syntax highlighting is enabled and Vim is in command mode, typing of keys at numeric keypad causes entering insert mode and pasting lowercase letter in the text. To type commands with numbers, e.g. "2dd", it's necessary to use number keys situated below function keys.

Outputs of number keys of numeric keypads in command mode:
0 - inserts "p" and (blank) newline
1 - inserts "q" and newline; in short 1: q^J
2: r^J
3: s^J
4: t^J
5: u^J
6: v^J
7: w^J
8: x^J
9: y^J

It's not a bug of Vim. I use the same VIM version with konsole 3.5.9 and it worked fine. In xterm numpad is available for typing commands in normal VIM mode, so in my opinion it's a bug of konsole.
Comment 1 Miroslav Ľos 2009-02-07 19:11:02 UTC
I can confirm everything in this on same setup. In addition Numpad+ is l^J.
Comment 2 Maik Beckmann 2009-02-09 10:04:31 UTC
Same on ArchLinux, kde-4.2.0.
Comment 3 Leos Junek 2009-02-13 04:20:36 UTC
See <http://bugs.kde.org/show_bug.cgi?id=178451#c6>

I have made some changes in configuration of konsole:
1) Settings > Edit current profile > Input
2) Select "Solaris console" and confirm by "OK" or "Apply"

With Default (XFree 4) console asterisk (*) did not work in Midnight Commander, as well as there were problems with numpad in VIM. This "input mode" was pre-selected for all the time I have been using konsole.

With Linux console or Solaris console no problems in VIM appeared. But with Linux console function keys F1-F5 did not work in Midnight Commander. With Solaris console all works fine.

The core of the bug will be probably hidden in key mapping.
Comment 4 Robert Knight 2009-02-13 17:20:07 UTC
SVN commit 925604 by knight:

Disable application keypad support in the default key bindings file as, although it
produces the correct key codes as tested using 'vttest', it breaks Vim - which
enables application key pad by default.

BUG:183076
CCBUG:170220



 M  +18 -15    default.keytab  


WebSVN link: http://websvn.kde.org/?view=rev&revision=925604