From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2122 invoked from network); 30 Mar 2000 11:13:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Mar 2000 11:13:42 -0000 Received: (qmail 382 invoked by alias); 30 Mar 2000 11:12:55 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2993 Received: (qmail 371 invoked from network); 30 Mar 2000 11:12:55 -0000 Message-ID: <38E336AF.C58B0A47@u.genie.co.uk> Date: Thu, 30 Mar 2000 12:12:47 +0100 From: Oliver Kiddle X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: zsh-users@sunsite.auc.dk Subject: Re: New user questions References: <38E2C6AA.62D027CD@asiapacificm01.nt.com> <38E2E5BC.F4A8CB2B@inka.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Friedrich Dominicus wrote: > > Changing separators > > ------------------- > > > > All the editor commands define a word separator as a space. Is there a > > way of changing zsh's idea of word separators? I would prefer that it > > consider '/' to be a separator as well. > > guess zsh makes this automatically. But don't know Zsh's idea of word separators is defined by the WORDCHARS parameter. It actually defines characters to be considered part of a word as opposed to separators. You can remove slash from it: WORDCHARS="${WORDCHARS:s@/@}" Personally, I only want slash to be considered a word separator for moving and deleting words backward and forward - not for other things like copying the last word so I define my own functions for these which all look something like this: tcsh-backward-word() { local WORDCHARS="${WORDCHARS:s@/@}" zle backward-word } Then I can do: zle -N tcsh-backward-word bindkey "..." tcsh-backword-word Oliver Kiddle