Sunday, December 27, 2009

when to use or in mappings

when to use <esc> or <c-c> in mappings

There seems to be some differences between <esc> and <c-c>.

<Esc> or CTRL-[ End insert or Replace mode, go back to Normal mode.
Finish abbreviation.

CTRL-C Quit insert mode, go back to Normal mode.
Do not check for abbreviations.
Does not trigger the |InsertLeave| autocommand event.

In mappings I have seen both used.

Please elaborate the fine points of use.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: