Adding quotes at start and end

Viewed 607

I have a list of dates in a .txt file:

11/05/2017
12/05/2017
15/05/2017
16/05/2017
17/05/2017

I need to add a quote before and after them and end each line with a semicolon instead of a space.

My output should be:

'11/05/2017'; '12/05/2017';'15/05/2017'; '16/05/2017'; '17/05/2017'

How do I get this in Vim?

4 Answers
Related