有没有办法让 IdeaVIM 遵守我的 .vimrc 文件中的映射? [英] Is there a way to get IdeaVIM to honor the mappings from my .vimrc file?

查看:19
本文介绍了有没有办法让 IdeaVIM 遵守我的 .vimrc 文件中的映射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近(再次)大举使用 vim,现在我的 .vimrc 文件中有大量自定义.我意识到在 IDEA 插件的上下文中并不是那里的所有内容都有意义,但是如果将 jj 重新映射到 Esc<,我会真的喜欢它/code> 被选中并受到表彰.有没有办法做到这一点?无需手动调整 IDEA 键盘映射中的所有内容.

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.

谢谢.

推荐答案

更新答案:IdeaVim 0.35 版(2014-05-15 发布)从 ~/.ideavimrc 读取设置和键绑定.如果你想包含来自 ~/.vimrc 的映射,你可以把 source ~/.vimrc 放在那个文件中.

Updated answer: IdeaVim version 0.35 (released 2014-05-15) reads settings and key bindings from ~/.ideavimrc. You can put source ~/.vimrc in that file if you want to include mappings from ~/.vimrc.

0.33 和 0.34 直接读取~/.vimrc.

0.33 and 0.34 read ~/.vimrc directly.

0.33(2014-04-28 发布)是第一个实现 VIM-288 的版本,包括一些东西比如将 jj 映射到 ESC.它工作得很好,IDEA 首选项中有一个新的 Vim Emulation 部分,列出了 ~/.vimrc 映射和 Intellij 映射之间的所有冲突,并让您解决冲突通过将密钥分配给 IDEA 或 IdeaVim.这是 Twitter 上的发布公告.

0.33 (released 2014-04-28) was the first version to implement VIM-288, including things like mapping jj to ESC. It works great, and there's a new Vim Emulation section in the IDEA preferences that lists all the conflicts between ~/.vimrc mappings and Intellij mappings, and lets you resolve the conflicts by assigning the keys to either IDEA or IdeaVim. Here is the release announcement on twitter.

(注:我不是作者,只是一个满意的用户.)

(Note: I'm not the author, just a satisfied user.)

这篇关于有没有办法让 IdeaVIM 遵守我的 .vimrc 文件中的映射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆