sublime 2如何进入vim模式

时间:2023-03-09 18:23:34
sublime 2如何进入vim模式

点击菜单栏【Preferences】——【Settings - Defaults】

查找:

"ignored_packages": ["Vintage"]

改为:

"ignored_packages": []

默认打开为插入模式(inserted mode)

如果希望打开默认是命令模式(command mode),点击菜单栏【Preferences】——【Settings - User】,加入:

"vintage_start_in_command_mode": true

(记得在上一行行尾添加逗号【,】,不然无法保存)

与Vim相比,包含的命令:

d (delete), y (copy), c (change), gu (lower case), gU (upper case), g~ (swap case), g? (rot13), < (unindent), and > (indent).

l, h, j, k, W, w, e, E, b, B, alt+w (move by sub-words), alt+W (move backwards by sub-words), $, ^, %, 0, G, gg, f, F, t, T, ^f, ^b, H, M, and L.