Is there a way to get IdeaVIM to honor the mapping

2019-01-13 05:28发布

I've recently gotten into vim in a big way (again), and I now have a ton of customization in my .vimrc file. I realize that not everything in there would make sense in the context of an IDEA plugin, but I'd really like it if things like remapping jj to Esc were picked up and honored. Is there a way to do that? Without needing to manually tweak all that stuff in IDEA's keymap, that is.

Thanks.

标签: vim ideavim
8条回答
兄弟一词,经得起流年.
2楼-- · 2019-01-13 06:00

You know, I've had some success with .vimrc in my home folder on Windows, so typically C:\Users\yourLogin . It would appear that's by design. Oleg mentions that IdeaVIM uses a subset of VIm commands here.

http://youtrack.jetbrains.com/issue/VIM-134#tab=Comments

Looks like you need to be logged in to see comments on the youtrack system.

Oleg Shpynov 15 Aug 2011 18:12

IdeaVIM plugin loads some configuration data from .vimrc file, however vim plugins support is not and won't be available, because is requires to rewrite all the VIM runtime within IdeaVim plugin.

Note that you have to name the file .vimrc, not _vimrc, if you're on Windows where you might expect the latter.

Works with set ignorecase at least!

查看更多
在下西门庆
3楼-- · 2019-01-13 06:03

IdeaVim now (at least as early as 0.35) supports a limited number of set commands, as well as map and its variations. To have them sourced automatically, put your settings in ~/.ideavimrc.

查看更多
登录 后发表回答