On Jul 1, 5:52 pm, Tim Chase <[email protected]> wrote:
> >   I want to know how to match the space that is not in the start of
> > the line.
>
> > for example
> >     sss sss
> > ^^^^   ^
> > I just match the second part of the sample.
>
> You want the "\@<!" modifier:
>
>    \%(^\s*\)\@<!\s
>
> which "Matches with zero width if the preceding atom does NOT
> match just before what follows." as detailed at
>
>    :help /\@<!
>
> In this case, the preceding atom is
>
>    \%(^\s*\)
>
> or "whitespace at the beginning of the line".
>
> -tim

thanks Tim , I think your atom work well. I know the \@<! , but I use
the   \%(^\s\+\)\@<!\s ,
can you tell me, why the \s\+ not work well, but the \s* work well

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

Reply via email to