vscode-vim icon indicating copy to clipboard operation
vscode-vim copied to clipboard

support user keybinding

Open 74th opened this issue 9 years ago • 7 comments

They call actions of VSCode and other plugins.

74th avatar Feb 24 '16 23:02 74th

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.

cmcpasserby avatar Apr 10 '16 17:04 cmcpasserby

I do not yet put a hand to it. I think an other file will be needed. ( like vimrc or json )

74th avatar Apr 11 '16 12:04 74th

and you plan to support re mapping vim commands as well as making mapping to native vscode stuff correct?

cmcpasserby avatar Apr 11 '16 13:04 cmcpasserby

@cmcpasserby Excuse me, please teatch me a part of your custom keybinfings on vim. I will try to make it.

74th avatar Apr 14 '16 23:04 74th

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

cmcpasserby avatar Apr 15 '16 01:04 cmcpasserby

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.

steinso avatar Apr 25 '16 10:04 steinso

support 0.4.0

74th avatar Nov 29 '16 00:11 74th