Ctrl C和Ctrl [?]之间有什么区别?文档包含以下内容,我可以找到:
<Esc> or CTRL-[ End insert or Replace mode,go back to normal mode. Finish abbreviation. Note: If your <Esc> key is hard to hit on your keyboard,train yourself to use CTRL-[.
CTRL-C Quit insert mode,go back to normal mode. Do not check for abbreviations. Does not trigger the |InsertLeave| autocommand event.
CTRL-C Interrupt current (search) command. Use CTRL-Break on MS-DOS |dos-CTRL-Break|. In normal mode,any pending command is aborted.
似乎有一些不同意什么命令做什么。
Ctrl C是否也不会退出替换模式,以及缩写与待处理命令有何关系?
它有助于在vim中想到CtrlC,就像你在shell中想到的CtrlC一样 – 你想停止你正在做的任何事情,并得到控制权。所以在vim中,如果你使用CtrlC打破插入模式,vim不会去检查你是否只写了一部分缩写,它不会运行你的插件设置的奇怪的自动命令每次你离开插入模式,它只是打算把你回到正常模式尽快。如果你不使用缩写或autocmds,那么你不会注意到这种差异。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。