我想在 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),但这在这里似乎没有帮助。