From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11356 invoked by alias); 15 Feb 2011 10:55:35 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15801 Received: (qmail 2597 invoked from network); 15 Feb 2011 10:55:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.12 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Thorsten Kampe Subject: Key bindings not working under screen Date: Tue, 15 Feb 2011 11:55:01 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: nat.scz.novell.com User-Agent: MicroPlanet-Gravity/3.0.4 Hello, I would like to ask for assistance trying to solve a problem with zsh under screen where key bindings are not working (for instance "bindkey '^[-' copy-prev-shell-word" in .zshrc). This is the problem: in my .zshrc (and .bashrc) I set editor variables to JED (if installed) or to Vim: # type jed &> /dev/null && DEFAULT_EDITOR=jed || DEFAULT_EDITOR=vim export EDITOR=$DEFAULT_EDITOR \ VISUAL=$DEFAULT_EDITOR # On systems where JED is not installed (-> DEFAULT_EDITOR=vim) I can observe this: % bindkey | wc -l 147 % bindkey | grep copy-prev-shell-word "^[-" copy-prev-shell-word % screen % bindkey | wc -l 131 % bindkey | grep copy-prev-shell-word % I've renamed my .screenrc but the issue remains. Interestingly it only happens when I set $EDITOR *and* $VISUAL in .zshrc, only under screen and only with zsh (not bash). Can someone shed some light about the connection between $EDITOR, $VISUAL, zsh and screen? Thorsten [zsh 4.3.11 on Cygwin (XP, 7 and 2008 R2) and on Gentoo Linux, GNU screen 4.0.3]