> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
