VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.89k stars 1.32k forks source link

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

Open rezjava opened 4 years ago

rezjava commented 4 years ago

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 commented 4 years ago

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. https://github.com/VSCodeVim/Vim/issues/3086 From a guy who wants to do Dvorak. What is it with you people, Isn't it enough to use vim? ;-)

rezjava commented 4 years ago

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

sql-koala commented 4 years ago

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 commented 4 years ago

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.