X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=cACF vv6Y1sa8/ZiiQ3pt4gd/hCA+0CLaLlfrUg/2WnbvEaGsT3p5QkoLqo5PEJXBrcai 0wadk7perhqTpLufep5UvPfOkjF7Wy5LH1gSyn34mEqm65U1Jg8TidFZHjeLhAEi 1I3jsGKXQJmJ5yrMpSASuc+euUDRbQEjs6SviOA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=M40f5wMEZa iLnmyp9SuiEQ4/1cY=; b=kwKiFmY2F0bJ0koyUtMfybpPTHjjZZH8q4Cq7m+kLV 2IwZXGUl2JOolKVXAP8EpUvUEC/k+7StjAi+I6pgmN9NR+ZrLmHlSWxvVu2Iet8A BZvFTQOlTxx3oqFgtImlAOHqmTlYFICdQnmr6/XK20In7UTmbxJjpKm41G5QFkg9 4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1805, emulator, dear, Dear X-HELO: mail.spocom.com Date: Fri, 2 Sep 2016 16:12:49 -0700 From: Gary Johnson To: cygwin AT cygwin DOT com Subject: Re: updated vim broke arrow/delete keys Message-ID: <20160902231249.GB24830@phoenix> Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes On 2016-09-02, Felipe Vieira wrote: > Dear Gary, > > you are absolutely right. Vim is not the problem. > > I did two changes at the same time and indeed tried the vim -u none > but maybe did not catch the error. > > Finally what causes the error is: > > inoremap > > no my vimrc. From http://vimdoc.sourceforge.net/htmldoc/map.html: > > ** > A easier way to get a mapping that doesn't produce anything, is to use "". > > Anyways this is not the expected behavior. Is there some complexity > here that I'm not capturing? In theory I'm disabling the key and > that's all. Why is it interfering with m arrow keys and the del key? The escape character alone in insert mode changes the mode to normal. The escape character may also begin an "escape sequence" when it is followed "immediately" by certain other characters. Vim determines whether an escape character is intended to be interpreted alone or as the beginning of an escape sequence by waiting only so long for the next character following the escape. If the next character arrives after some time limit, the escape is processed as a single escape and subsequent characters are processed as themselves rather than part of an escape sequence. In your case, it appears that the characters following the escape in the escape sequences for the arrow and delete keys are arriving after that time limit. That time limit is set by the 'ttimeoutlen' option, or by the 'timeoutlen' option if the value of 'ttimeoutlen' is negative. See ":help 'ttimeoutlen'". This timeout defaults to 1 second, which should be plenty of time for a terminal emulator such as mintty to send an escape sequence. What do you see when you execute this? :verbose set timeoutlen? ttimeoutlen? Regards, Gary -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple