On 05/02/09 16:59, ViX wrote:
> if the cursor in at the first of the following line, eg. "s"
> self.InsertColumn(5, "Locked")
> cw will erase all words up to ',', is there a way to change the cw
> behavior so that it will stop at any non-alphabet (number, signs,
> etc)?
>
> TIA.

You can create your own "change" command, and optionally map it to a 
key, for instance as follows:

        :nmap  <F5>  c/[^[:alpha:]]<CR>

Known bug: the above won't stop at a linebreak. With 
c/\_[^[:alpha:]]<CR> instead, it will not replace a linebreak but 
neither will it replace the last character on a line even if it is 
alphabetic.


Best regards,
Tony.
-- 
User:       I'm having problems with my text editor.
Help desk:  Which editor are you using?
User:       I don't know, but it's version VI (pronounced: 6).
Help desk:  Oh, then you should upgrade to version VIM (pronounced: 994).

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to