gpt4 book ai didi

SublimeText2 : Disable cursor keys in Vintage mode

转载 作者:行者123 更新时间:2023-12-03 13:35:24 26 4
gpt4 key购买 nike

我想强制自己在 Sublime 文本中练习 VIM 时使用 hjkl 进行导航。即我想将光标键映射为在插入模式下不执行任何操作。

最佳答案

在“Packages/User/Default.sublime-keymap”中添加以下几行。

[
{"keys": ["up"], "command": "pass",
"context": [{ "key": "setting.command_mode", "operand": false }]},
{"keys": ["down"], "command": "pass",
"context": [{ "key": "setting.command_mode", "operand": false }]},
{"keys": ["left"], "command": "pass",
"context": [{ "key": "setting.command_mode", "operand": false }]},
{"keys": ["right"], "command": "pass",
"context": [{ "key": "setting.command_mode", "operand": false }]}
]

(如果您已经拥有该文件,请在文件中的最后一个 ] 之前插入 {"keys"... }]} 行。)

关于SublimeText2 : Disable cursor keys in Vintage mode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13970019/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com