In Vim is there more than one way to leave insert mode?

后端 未结 5 1162
抹茶落季
抹茶落季 2021-02-05 11:44

There are several commands that do something and then enter insert mode. Are there also commands that leave insert mode and do things?

For example, I frequently do this.

5条回答
  •  孤街浪徒
    2021-02-05 12:25

    Pressing Ctrl-L leaves insert mode in evim, so why not in regular vim, too? Add this to your vimrc: :imap

    Or if you don't want to configure vim use Ctrl-[, as suggested by others.

提交回复
热议问题