I’m exploring Vim’s capabilities and somehow stumbled upon this task. It’s constructed, but I’m curious: Is there a one-liner colon command that can
- find the first line that matches a pattern p (say, begins with „bla“)
- find the first line after this line that doesn’t match p and
- move lines 4-5 after the line found in 2.?
The order of 1.-3. doesn’t matter for purposes of execution, that’s just to explain what I’m thinking of achieving.
Thanks guys! Vim is so great.