I made the regex:
/^\n\t(\n|.)*?\n$/gm
(prepended with \v inside Vim) to select consecutively indented lines (with tab) separated by a top blank line.
But while it works in other languages it doesn't seem to do in Vim.
I expect to get the following "underlined" parts highlighted:
A random fact:
_
____this_______
________should_
____be_________
____highlighted
_
Another random fact:
this
should
NOT
be
highlighted
But what I get is:
A random fact:
_
____this_______
________should_
____be_________
____highlighted
_
_Another_random_fact:
____this_______
________should_
____NOT________
____be_________
____highlighted
What am I doing wrong?
*?
is some other regex flavor's "non-greedy*
"… don't try to translate other regexes into Vim patterns. Instead, read:help pattern
; the syntaxes for some things are quite different.