2009/5/22 Matt Wozniski <[email protected]>: > > 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 any alphabetic character, I can use \a. If I want >> to match any alphabetic character OR the '@' symbol, I can use >> [[:alpha:]...@]. >> If I want to match any keyword character, I can use \k. How can I >> match any keyword character OR the '@' symbol? > > Why not just > > /\(\k\|@\)/ > > or more generally > > /\(\k\|[...@+-]\)/ > > or some such?
Because I hadn't thought of it! Thank you! Al --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
