Re: Contextual 'iskeyword'?

2006-10-20 Thread Gary Johnson
On 2006-10-18, "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote: > Benji Fisher wrote: > > On Wed, Oct 18, 2006 at 01:21:31AM +0200, A.J.Mechelynck wrote: > >> 1. Em dashes should normally be set apart from the neighbouring words by > >> blank spaces -- like this -- and if they are, they won't be mista

Re: Contextual 'iskeyword'?

2006-10-18 Thread A.J.Mechelynck
Benji Fisher wrote: On Wed, Oct 18, 2006 at 01:21:31AM +0200, A.J.Mechelynck wrote: After reading this thread, I've seen "requests for improvement" to the Vim source; but let's try to find (for the time being) something which works in the current Vim version. 1. Em dashes should normally be s

Re: Contextual 'iskeyword'?

2006-10-18 Thread Benji Fisher
On Wed, Oct 18, 2006 at 01:21:31AM +0200, A.J.Mechelynck wrote: > > After reading this thread, I've seen "requests for improvement" to the Vim > source; but let's try to find (for the time being) something which works in > the current Vim version. > > 1. Em dashes should normally be set apart f

Re: Contextual 'iskeyword'?

2006-10-18 Thread Benji Fisher
On Tue, Oct 17, 2006 at 04:54:21PM -0500, Tim Chase wrote: > > Let's think big and look for a generic solution. IMHO, it is way > >too restrictive to insist that a word is anything matching the pattern > >/\k\+/ . I want a new option, 'wordpat', with a default value of > >'\k\+', that specifi

Re: Contextual 'iskeyword'?

2006-10-17 Thread Peter Hodge
--- Benji Fisher <[EMAIL PROTECTED]> wrote: > On Tue, Oct 17, 2006 at 05:43:08AM -0500, Tim Chase wrote: > > In some text, I've got compound words separated by a single > > hyphen. For convenience of yanking, I've added the hyphen to my > > iskeyword setting which works nicely for the most part

Re: Contextual 'iskeyword'?

2006-10-17 Thread A.J.Mechelynck
Tim Chase wrote: In some text, I've got compound words separated by a single hyphen. For convenience of yanking, I've added the hyphen to my iskeyword setting which works nicely for the most part. However, I also use a doubled-hyphen to the effect one would use an em-dash which leads to the

Re: Contextual 'iskeyword'?

2006-10-17 Thread Tim Chase
Let's think big and look for a generic solution. IMHO, it is way too restrictive to insist that a word is anything matching the pattern /\k\+/ . I want a new option, 'wordpat', with a default value of '\k\+', that specifies what should be recognized as a word, for purposes of search pattern

RE: Contextual 'iskeyword'?

2006-10-17 Thread Zdenek Sekera
> -Original Message- > From: Benji Fisher [mailto:[EMAIL PROTECTED] > Sent: 17 October 2006 15:03 > To: Vim users > Subject: Re: Contextual 'iskeyword'? > > On Tue, Oct 17, 2006 at 05:43:08AM -0500, Tim Chase wrote: > > In some text, I'v

Re: Contextual 'iskeyword'?

2006-10-17 Thread Benji Fisher
On Tue, Oct 17, 2006 at 05:43:08AM -0500, Tim Chase wrote: > In some text, I've got compound words separated by a single > hyphen. For convenience of yanking, I've added the hyphen to my > iskeyword setting which works nicely for the most part. However, > I also use a doubled-hyphen to the eff

Re: Contextual 'iskeyword'?

2006-10-17 Thread Yakov Lerner
On 10/17/06, Tim Chase <[EMAIL PROTECTED]> wrote: In some text, I've got compound words separated by a single hyphen. For convenience of yanking, I've added the hyphen to my iskeyword setting which works nicely for the most part. However, I also use a doubled-hyphen to the effect one would use

Contextual 'iskeyword'?

2006-10-17 Thread Tim Chase
In some text, I've got compound words separated by a single hyphen. For convenience of yanking, I've added the hyphen to my iskeyword setting which works nicely for the most part. However, I also use a doubled-hyphen to the effect one would use an em-dash which leads to the unwanted situation