help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] How to configure 'b' and 'e' vi mode to ignore '.'?


From: Chet Ramey
Subject: Re: [Help-bash] How to configure 'b' and 'e' vi mode to ignore '.'?
Date: Tue, 27 Nov 2012 11:23:55 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

On 11/27/12 11:02 AM, Peng Yu wrote:
> Hi,
> 
> By default, 'b' and 'e' stop at '.' in vi mode. I think that there
> should be a way to configure 'b' and 'e' stop only at white space but
> not '.'. But I'm not able to find it in the document. Could anybody
> let me know how to set it? Thanks!

vi makes a distinction between a `word' (sequence of letters, digits, and
underscores delimited by something that's not) and a `bigword' (sequence of
non-blanks delimited by a blank).

`b' and `e' operate on words.  `B' and `E' operate on bigwords.  If you
don't want to stop at a vi word delimiter, use the commands that operate
on bigwords.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]