Including \k in a character collection in a pattern

2009-05-22 Thread A. S. Budden
When using patterns in vim, I often make use of the \k pattern to match any part of the keyword. Is it possible to make a character collection that includes \k and other characters? To clarify by way of an example: If I want to match any alphabetic character, I can use \a. If I want to match

Re: Including \k in a character collection in a pattern

2009-05-22 Thread A. S. Budden
2009/5/22 Equinox86 equino...@gmail.com: mmm this not work? [[...@] ? or this? [...@] ? I'm not sure what [[...@] translates as (it matches absolutely nothing in my source file!), but [...@] translates as either a k, an @ or a backslash, which is not what I intended. Al

Re: Including \k in a character collection in a pattern

2009-05-22 Thread Matt Wozniski
On Fri, May 22, 2009 at 4:23 AM, A. S. Budden wrote: When using patterns in vim, I often make use of the \k pattern to match any part of the keyword.  Is it possible to make a character collection that includes \k and other characters?  To clarify by way of an example: If I want to match

Re: Including \k in a character collection in a pattern

2009-05-22 Thread Andy Wokula
A. S. Budden schrieb: When using patterns in vim, I often make use of the \k pattern to match any part of the keyword. Is it possible to make a character collection that includes \k and other characters? sorry, you can't. instead of /foo[\k...]*bar you have to do

Re: Including \k in a character collection in a pattern

2009-05-22 Thread A. S. Budden
2009/5/22 Matt Wozniski m...@drexel.edu: On Fri, May 22, 2009 at 4:23 AM, A. S. Budden wrote: When using patterns in vim, I often make use of the \k pattern to match any part of the keyword.  Is it possible to make a character collection that includes \k and other characters?  To clarify by

Re: Including \k in a character collection in a pattern

2009-05-22 Thread A. S. Budden
2009/5/22 Andy Wokula anw...@yahoo.de: A. S. Budden schrieb: When using patterns in vim, I often make use of the \k pattern to match any part of the keyword.  Is it possible to make a character collection that includes \k and other characters? sorry, you can't.  instead of