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 - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -