Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS CodeVim dosen't work well with .vimrc #4546

Open
rezjava opened this issue Feb 7, 2020 · 4 comments
Open

VS CodeVim dosen't work well with .vimrc #4546

rezjava opened this issue Feb 7, 2020 · 4 comments

Comments

@rezjava
Copy link

rezjava commented Feb 7, 2020

Description of the bug
Actually I am not sure that it's a bug, hope the information will be useful.
I want to use VS Code as Vim editor with colemak layout but normal mode key bindings don't work.
Doesn't work ONLY key binding for moving - "noremap n j"
My OS: Ubuntu 19.04 64-bit
VS Code version 1.41.1
Vim emulation is enabled globally. Version 1.12.4
My settings: .vimrc and settings.json
Screenshot from 2020-02-07 10-14-33
Screenshot from 2020-02-07 10-15-34

@sql-koala
Copy link
Contributor

sql-koala commented Feb 7, 2020

Doesn't work ONLY key binding for moving - "noremap n j"

I am not sure I understand you correctly, but the problem is probably this:
In regular vim, noremap creates a mapping for normal, visual and operator mode ( that is: motions after c/d/y ... )
vscodevim does not support operator maps, so if you type dn it will not delete down.

edit:
There is an issue for operator mode maps. #3086
From a guy who wants to do Dvorak. What is it with you people, Isn't it enough to use vim? ;-)

@rezjava
Copy link
Author

rezjava commented Feb 11, 2020

Maybe you are right, I have better use just Vim.

@sql-koala
Copy link
Contributor

Hi, I think there was a misunderstanding: I did not want to suggest, that you should not use vscodevim.

I just wanted to point you (and devs) to the right feature and explain that this is not a problem with vimrc processing.

@ollyhayes
Copy link

If it's helpful, I created a fork of the plugin where I hardcoded it to use my colemak remappings. If they're the same as yours, you can installed it here, otherwise maybe you can use the same technique to make your own version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants