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不是也离开替换模式,也缩写如何与挂起的命令?
too*_*php 77
它有助于CtrlC在vim中以与CtrlCshell中相同的方式思考- 你想要尽快停止你正在做的事情并获得控制权.所以,在vim,如果你使用CtrlC打出来的插入模式时,Vim是不会理会检查,如果你只是写了一个缩写的一部分,它是不会运行看中自动命令你的插件已经设置了对于每次离开插入模式,它只会在正常模式下尽快将其转回.如果你没有使用缩写或autocmds,那么你就不会注意到这种差异.