Home Download Buy Blog Forum Support

Vintage: remap "x" to delete to null register

Vintage: remap "x" to delete to null register

Postby iota on Mon Jan 21, 2013 4:01 pm

Hi all,

I'd really like to emulate the following vim macro in ST2 Vintage mode:

Code: Select all
noremap x "_x


To avoid accidentally blowing away my default register contents.
I've been looking through the Vintage package options, and the best I can come up with is this:

Code: Select all
    "keys": ["x"], "command": "set_action_motion", "args": {
    "action": "vi_right_delete",
    "contents":"\"_",
    "motion": null },
    "context": [{"key": "setting.command_mode"}]
 


But it is borked :( I'm a novice here, so any help you can give me is much appreciated!
iota
 
Posts: 8
Joined: Fri Nov 18, 2011 5:43 pm

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 29 guests