74th / vscode-vim

vim emulator for Visual Studio Code
MIT License
215 stars 25 forks source link

support user keybinding #27

Open 74th opened 8 years ago

74th commented 8 years ago

They call actions of VSCode and other plugins.

cmcpasserby commented 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.

74th commented 8 years ago

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

cmcpasserby commented 8 years ago

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

74th commented 8 years ago

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

cmcpasserby commented 8 years ago

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

steinso commented 8 years ago

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.

74th commented 7 years ago

support 0.4.0