如何更改 Vim 中的快捷键?
I am a new user in Vim. How change these keys in Zen Coding,
ctr+y+,
To
ctr+e
And also change in omni,
ctr+x ctr+o
To
ctr+j
How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议你输入:
在 vim 中,你会找到所有解释以了解如何操作。
您不能对“zencoding”插件和全能功能使用相同的快捷方式;无论如何,你可以添加到你的.vimrc:
但我建议不要使用'Cj',因为'j'总是与vim中的移动相关;请改用针对用户快捷方式的“leader”(
:helpleader
)。I suggest you to type:
inside vim, you'll find all the explanation to understand how to do it.
You can't use the same shortcut for 'zencoding' plugin and for an omnicomplete function; anyway you could add to your .vimrc:
But I suggest not to use 'C-j' as 'j' is always related to movement in vim; use 'leader' (
:help leader
) which is targeted to user shortcuts, instead.您可以遵循@eolo999提供的答案,但我建议您阅读zencoding文档并将以下内容添加到vimrc中:
You may follow the answer provided by @eolo999, but I suggest you to read zencoding documentation and add the following to the vimrc: