ViPlugin for Eclipse 的按键映射

发布于 2024-09-07 04:15:52 字数 851 浏览 1 评论 0原文

我想在 ViPlugin for Eclipse 中复制一些 Vi 键映射。具体来说,我使用“jj”作为 Esc 键,这在我的 rc 文件中是这样完成的:

map! jj <Esc>

ViPlugin 用户手册解释了如何设置某些 rc 文件类型的配置。给出的示例是:

<?xml version="1.0"?>
<xml>
    <shiftwidth>4</shiftwidth>
    <vimcursor>true</vimcursor>
    <ignorecase>true</ignorecase>
    <expandtab>true</expandtab>
    <hlsearch>true</hlsearch>
    <incsearch>true</incsearch>
    <undolevels>1000</undolevels>
    <wordseparators>.,(,), ,TAB,ENTER,:,;,?,+,=,ANGLE_BRACKET_RIGHT,ANGLE_BRACKET_LEFT,*,{,},",|,COMMA,-,\,/,@,[,],},~,!,#,$,%,^,',`,´,AND</wordseparators>
</xml>

用户手册还提到了 ViPlugin 实现的一些 Eclipse 操作,可以为其分配键绑定(例如,EraseBackOneWord 和 AddOneLevelOfIndentation),但这在这里似乎没有帮助。

I want to duplicate some of my Vi key mappings in the ViPlugin for Eclipse. Specifically, I use "jj" for the Esc key, which is done like this in my rc file:

map! jj <Esc>

The ViPlugin User Manual explains how to set up some rc file type of configurations. The example given is:

<?xml version="1.0"?>
<xml>
    <shiftwidth>4</shiftwidth>
    <vimcursor>true</vimcursor>
    <ignorecase>true</ignorecase>
    <expandtab>true</expandtab>
    <hlsearch>true</hlsearch>
    <incsearch>true</incsearch>
    <undolevels>1000</undolevels>
    <wordseparators>.,(,), ,TAB,ENTER,:,;,?,+,=,ANGLE_BRACKET_RIGHT,ANGLE_BRACKET_LEFT,*,{,},",|,COMMA,-,\,/,@,[,],},~,!,#,$,%,^,',`,´,AND</wordseparators>
</xml>

The User Manual also mentions about a handful of Eclipse Actions that the ViPlugin implements, which can be assigned Keybinding (for example, EraseBackOneWord and AddOneLevelOfIndentation), but that doesn't seem to be helpful here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抽个烟儿 2024-09-14 04:15:54

我相信使用 ViPlugin 无法实现您想要实现的目标。它支持一组有限的可重新绑定操作,可通过默认的 Eclipse 键绑定菜单访问这些操作。

I believe what you trying to achieve isn't possible using the ViPlugin. It supports a limited set of rebindable actions which are accessible through the default eclipse key bindings menu.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文