Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you replace with a newline in VsCode Vim

None of the suggestions found here work, nor does a search on issues in the repo turn up anything.

I'd like to replace all >< with >\r\n< inside a selection

'<,'>s/></?/g

what goes in place of the question mark?

like image 908
Maslow Avatar asked Nov 09 '22 02:11

Maslow


1 Answers

Does this work for you?

:'<,'>s/></>\r</g

Are you on windows and trying to insert both (literal) \r (carriage return) and \n (new line) ?

like image 129
ffledgling Avatar answered Nov 14 '22 23:11

ffledgling