Home Download Buy Blog Forum Support

Include multiplier in keymap for Vintage cmd

Include multiplier in keymap for Vintage cmd

Postby Tuanglen on Sat Dec 14, 2013 5:05 am

How would you include a repeat number when keymapping a Vintage command? For example, you could remap the 'i' key to move up one line with:

Code: Select all
   
   { "keys": ["i"], "command": "set_motion", "args": {
      "motion": "move",
      "motion_args": {"by": "lines", "forward": false, "extend": true },
      "linewise": true },
      "context": [{"key": "setting.command_mode"}]
   }


How would you remap the 'I' (uppercase-i) key to move up, say, 20 lines?
Tuanglen
 
Posts: 15
Joined: Wed Aug 22, 2012 8:17 am

Return to General Discussion

Who is online

Users browsing this forum: qgates and 25 guests