≡

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 #2056

Bug #2056: <Esc> does not work as close key under tmux

Kind bug
Product Command-T
When Created 2013-02-08T10:23:06Z, updated 2013-02-11T06:43:50Z
Status open
Reporter anonymous
Tags no tags

Description

I found this line in the controller.rb:

unless mapping == '<Esc>' && term =~ /\A(screen|xterm|vt100)/

Why <Esc> key is disabled under screen term? It is a requirement from tmux to set TERM to screen.

Comments

  1. Greg Hurrell 2013-02-09T17:36:46Z

    Here's what I have in my ~/.vimrc for this:

    if &term =~ "screen" || &term =~ "xterm"
      let g:CommandTCancelMap     = ['<ESC>', '<C-c>']
      let g:CommandTSelectNextMap = ['<C-j>', '<ESC>OB']
      let g:CommandTSelectPrevMap = ['<C-k>', '<ESC>OA']
    endif

    Right now I can't remember the exact details of why that line was added, but I do remember that at the time the terminal(s) I tested on were misbehaving when <ESC> was in the list. I haven't retested since then.

  2. anonymous 2013-02-11T06:43:50Z

    Hmmm, thanks, it's working well. But I think it's need to be documented, because of this behaviour is not obvious at all.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets