regex - Match a pattern in vim, not in the beginning of line -


i trying search pattern in vim, pattern must not in beginning of line, aka first non white space character of line, indentation purpose.

eg. :

    should() not found     this() should() found 

using /should, both should pattern found. i've tried use like, "not start of line" , not working : /[^^] *should. i've made work using : /\w.* *should, not ideal.

use \zs set start of match after non-blank character followed blanks:

/\s\s*\zsshould 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -