Open 74th opened 8 years ago
is their any progress on this, would be nice if it was possible to create contexts in the keybindings.json file for when the editor is in command, visual or insert mode.
I do not yet put a hand to it. I think an other file will be needed. ( like vimrc or json )
and you plan to support re mapping vim commands as well as making mapping to native vscode stuff correct?
@cmcpasserby Excuse me, please teatch me a part of your custom keybinfings on vim. I will try to make it.
it is just some basic re mappings for what i am trying to do.
"change code indents
vnoremap < <gv
vnoremap > >gv
"advanced motions end and start of line
noremap H ^
noremap L g_
um assuming for the indent level stuff, you would just tie it to the native vscode one, but i am not sure if anything equivalent to ^ or g_ exist in vscode.
Also would be amazing if leader commands could work.
taking a closer look, it seems you don't support ^ or g_ yet either
I map 'jk' (j followed by k) to Esc, and using editorTextFocus as the context makes 'j' unusable in command mode as it is still waiting for the second key. Would be great to have a context specifically for insert-mode.
support 0.4.0
They call actions of VSCode and other plugins.