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 mistaken for

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

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've got compound words separated by a single hyphen

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

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 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.