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 -~----------~----~----~----~------~----~------~--~---
- Re: smartsearch Marc Weber
- Re: smartsearch StarWing
- Re: smartsearch Tony Mechelynck
- Re: smartsearch Marc Weber
- Re: smartsearch StarWing
- Re: smartsearch Nikolai Weibull
- Re: Some babyish idea/plan about Vim StarWing
- Re: Some babyish idea/plan about Vim Nikolai Weibull
- Re: Some babyish idea/plan about Vim StarWing
- Re: Some babyish idea/plan about Vim Nikolai Weibull
- Re: Some babyish idea/plan about Vim Ben Fritz
- Re: Some babyish idea/plan about Vim Teemu Likonen
- Re: Some babyish idea/plan about Vim StarWing
- Re: Some babyish idea/plan about Vim Marc Weber
- Re: Some babyish idea/plan about Vim StarWing
- Re: Some babyish idea/plan about Vim Tony Mechelynck
- Re: Some babyish idea/plan about Vim StarWing
- Re: Some babyish idea/plan about Vim Nikolai Weibull
- Re: Some babyish idea/plan about Vim StarWing
- Re: smartsearch mobi phil
- Re: smartsearch StarWing