Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Keybinding to complexe macro

Open Armaklan opened this issue 10 years ago • 1 comments

I want do this keymap :

[:editor :lt.plugins.vim/map-keys {",;" "$A;<ESC>"}]

The $a of keymap work fine : cursor go to the end of line and pass to edition mode. The end of keymap (; character don't work).

Armaklan avatar Jun 23 '15 02:06 Armaklan

I'm not familiar with this plugin (or its code) but the README seems to indicate that the latter portion won't work [emphasis mine]:

To map keys to normal mode, add a :lt.plugins.vim/map-keys behavior:

[:app :lt.plugins.vim/map-keys {"j" "gj" "k" "gk"}]

For a thorough example, see this config

To map keys to visual mode, add a :lt.plugins.vim/map-keys-visual behavior under your :app section like above.

CodeMirror does not support mapping to other modes at this time.

I'm guessing the last two keys aren't working because the A command enters Insert mode.

kenny-evitt avatar Jun 23 '15 13:06 kenny-evitt