New answers tagged

0 votes

Regex to select indented lines preceded by one top blank line not working in Vim

There is a BUG in the given regex. The given regex /^\n\t(\n|.)*?\n$/gm is going to match "newline & tab" at the starting , then it is going to match "newline or other character&...
  • 111
0 votes

Regex to select indented lines preceded by one top blank line not working in Vim

I believe the last \n is eaten by the first occurrence /^\n\t\(\n\|.\){-}\ze^\n/g Or: /\v^\n\t(\n|.){-}\ze^\n/g Or: /\v^\n\t\_.{-}\ze^\n/g The {-} replace the * make the repetition non-greedy to ...

Top 50 recent answers are included