≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1953

Bug #1953: Not responding to ESC key under mintty or Puttycyg

Kind bug
Product Command-T
When Created 2012-02-28T00:30:40Z, updated 2012-03-01T04:07:22Z
Status open
Reporter asgeo1
Tags no tags

Description

When using the command-t plugin with Vim, if you press ESC that will typically close the window (and cancel the search)

But it doesn't work for me when run in a terminal emulator like mintty or Puttycyg.

In all other aspects when using these terminals, the ESC key works fine in Vim. I.e. when changing to "normal" mode that works, or anything else.

It's only command-t that is not responding to ESC.

What could be going on that it doesn't work in command-t ?

Mintty v1.0.3 or Puttycyg (not sure) Vim 7.3 Cygwin 1.7.10 Windows XP

Cheers, -adam

Comments

  1. Greg Hurrell 2012-02-29T07:53:30Z

    If the TERM type is anything like xterm, you'll probably need to make a special mapping to make the ESC key work. For an example, see this post.

  2. asgeo1 2012-03-01T04:07:22Z

    Ah, thanks Wincent. This worked a treat:

    if &term =~ "xterm" || &term =~ "screen"

       let g:CommandTCancelMap = ['<ESC>', '<C-c>']

    endif

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets