What's the difference between Ctrl+C and Ctrl+[?

前端 未结 1 1333
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 22:11

What\'s the difference between Ctrl+C and Ctrl+[? The documents contain the following that I can find:

 or C         


        
相关标签:
1条回答
  • 2020-12-02 22:26

    It helps to think of CtrlC in vim the same way you think of CtrlC in a shell - you want to stop whatever you were doing ASAP and get control back. So in vim, if you're using CtrlC to break out of insert mode, vim isn't going to bother checking if you just wrote part of an abbreviation, and it isn't going to run the fancy auto commands your plugins have set up for every time you leave insert mode, it's just going to dump you back in normal mode as soon as it can. If you're not using abbreviations or autocmds, then you're not going to notice this difference.

    0 讨论(0)
提交回复
热议问题