Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在sublime text 3中实现类似Vim的imap映射_Vim_Mapping_Sublimetext3 - Fatal编程技术网

在sublime text 3中实现类似Vim的imap映射

在sublime text 3中实现类似Vim的imap映射,vim,mapping,sublimetext3,Vim,Mapping,Sublimetext3,我想有;当我按下时,插入到行尾;;在插入模式下。崇高文本3中的映射是什么 例如: inoremap ;; <C-o>A; 因为我找不到任何本机的编辑器解决方案, 幸运的是,有一个名为“命令链”的插件 然后,您可以将其放入用户密钥映射设置文件: { "keys": [";", ";"], "command": "chain", "args": { "commands": [ [ "move_to", { "to": "eol" }],

我想有;当我按下时,插入到行尾;;在插入模式下。崇高文本3中的映射是什么

例如:

inoremap ;; <C-o>A;

因为我找不到任何本机的编辑器解决方案, 幸运的是,有一个名为“命令链”的插件

然后,您可以将其放入用户密钥映射设置文件:

{
    "keys": [";", ";"],
    "command": "chain",
    "args": {
    "commands": [
        [ "move_to", { "to": "eol" }],
        [ "insert", { "characters": ";" } ]
    ]
    },
    // with a help of this line, command won't get executed
    // if in command_mode (vintage mode enabled), so it applies to insert mode
    // only.
    "context": [ { "key": "setting.command_mode", "operand": false } ]
}
https://packagecontrol.io/packages/Chain%20of%20Command
{
    "keys": [";", ";"],
    "command": "chain",
    "args": {
    "commands": [
        [ "move_to", { "to": "eol" }],
        [ "insert", { "characters": ";" } ]
    ]
    },
    // with a help of this line, command won't get executed
    // if in command_mode (vintage mode enabled), so it applies to insert mode
    // only.
    "context": [ { "key": "setting.command_mode", "operand": false } ]
}