OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

ESC optimization behavior wrong vim in : command lie #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. do as tips says
let &t_ti.="\e[?7727h"
let &t_te.="\e[?7727l"
noremap <Esc>O[ <Esc>
noremap! <Esc>O[ <Esc>
2. vim
3. :e
4. press <ESC>

What is the expected output? What do you see instead?
expected: return to editor normal mode
instead: E32: No file name, just like i press <ENTER> after :e

What versions of mintty, Cygwin/MSYS, and Windows are you using?
mintty 0.9.1
cygwin latest
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 19 2010 13:06:02)
windows xp latest patched

Original issue reported on code.google.com by moo.wej...@gmail.com on 22 Oct 2010 at 4:45

GoogleCodeExporter commented 9 years ago
This is primarily a vim question, so I've asked about this issue at 
http://groups.google.com/group/vim_use/browse_thread/thread/f0c86cf6ca72cc23.

Changing the last .vimrc line to this appears to do the job:

noremap! <Esc>O[ <C-c>

Let me know whether this causes any other trouble.

Original comment by andy.koppe on 22 Oct 2010 at 11:41

GoogleCodeExporter commented 9 years ago
it works. let's see if it's safe

Original comment by moo.wej...@gmail.com on 23 Oct 2010 at 1:22

GoogleCodeExporter commented 9 years ago
Thanks. I've amended the tips wiki accordingly in r1060.

Original comment by andy.koppe on 23 Oct 2010 at 6:21

GoogleCodeExporter commented 9 years ago
The opinion on the vim_use thread appears to be that the Esc mapping behaviour 
functions as designed, but no-one's been able to explain why it's designed that 
way.

Original comment by andy.koppe on 27 Oct 2010 at 5:46