2009/7/1 ginkgo <[email protected]>: > > Hello everyone, > 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. > Can anyone help me?
How about: /^\s\+\S\+\zs\s / - Search ^ - Start of the line \s\+ - One or more spaces (replace \+ with * if you don't mind whether there are spaces) \S\+ - One or more non-space characters \zs - Start the match from here (so ignore everything before) \s - A space Al --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
