Forum

Numeric keypay in v...
 
Notifications
Clear all

Numeric keypay in vim (vi)

0 Posts
2 Users
0 Reactions
127 Views
(@draycott)
Active Member
Joined: 22 years ago
Posts: 3
Topic starter  

Get no or garbled (, etc.) when entering number from numberic keypad in input mode ':' with vim on Redhat Linux 7.3

TERM=vt100
Windows XP
Sony Vaio


   
ReplyQuote
(@draycott)
Active Member
Joined: 22 years ago
Posts: 3
Topic starter  

':' is command mode, not input. entering to go to a line number


   
ReplyQuote
(@bpence)
Member Admin
Joined: 9 months ago
Posts: 1374
 

By default, the keypad works in a very specific way for terminal applications. If you're getting escape sequences out of the keypad, it's likely set in 'application' mode which is probably not what you want.

To force a PC style keypad where you are either in numeric mode or extended mode (arrows, home, end, insert, del), you must go to Options->Properties->VT Options and switch off 'VT Keypad'


   
ReplyQuote
(@draycott)
Active Member
Joined: 22 years ago
Posts: 3
Topic starter  

That was it. Great software and service.


   
ReplyQuote
Share: