在sublime text 3中实现类似Vim的imap映射
我想有;当我按下时,插入到行尾;;在插入模式下。崇高文本3中的映射是什么 例如:在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" }],
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 } ]
}