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
Post a Comment