加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

vim – Ctrl C和Ctrl之间有什么区别?

发布时间:2020-12-15 16:16:54 所属栏目:安全 来源:网络整理
导读: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-
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,那么你不会注意到这种差异。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读