:g/^\(\w\+\).*\n\1\@!./pu_
Inserts a blank after every line that does not start with the same word as the immediately following line.
Extremely useful for .tsv and .csv files.
(might need some tweaking for non-word characters)
Vim awesomeness.
9 November 2012 by Gianmarco De Francisci Morales
:g/^\(\w\+\).*\n\1\@!./pu_
Inserts a blank after every line that does not start with the same word as the immediately following line.
Extremely useful for .tsv and .csv files.
(might need some tweaking for non-word characters)
Vim awesomeness.
Leave a Reply