Vim
Vim copied to clipboard
Keybinding to complexe macro
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).
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-keysbehavior:[: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-visualbehavior under your:appsection 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.