On Jul 17, 4:49 am, StarWing <weasley...@sina.com> wrote:
> can you write a pattern to replaced foo to bar in code, but not in
> string and comment? that's useful, but Vim pattern doesn't support
> that :-( maybe makes user can get current syntax state easily is
> better.
>

It's not pretty, and it's sort of cheating (at least I wouldn't
consider it a "pattern" per se), but I successfully did this in a
single :s command...I'm just not 100% certain it's supposed to work:

http://groups.google.com/group/vim_use/browse_thread/thread/3ca623fd506820fa
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui