Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 3
    Welcome to Vi and Vim bo0k! Your post was automatically flagged as being low-quality because it's short and mostly code—it would be better if you could give some explanation with the answer. You can edit to do so. (Off the top of my head, I happen to know this works in xterm-like terminals because Alt + key sends escape sequences that actually include triggering <esc>.) Commented May 4, 2020 at 20:49
  • 4
    Alt+e will send <Esc>e, so it actually exits insert mode and issues the e command (to go to the end of the word). A useful shortcut in some cases perhaps, but it does more than just "exit insert mode" :-) You see which characters are sent to Vim by using <C-v><Alt-e> in insert mode; that will insert the literal characters. Commented May 5, 2020 at 1:18