Step 1 : Put the desired character at the end of each line. I will use a "," as an example
:%s/$/,/g
Step 2 : Join the lines together
%j!
:%s/$/,/g
Step 2 : Join the lines together
%j!
Technical tid-bits and more ! Leave a comment if you found something useful.
1 comment:
Great tips! Thanks. I think you can leave out the g here, though, since the EOL should only occur once per line:
:%s/$/,/g
to
:%s/$/,/
and %j! should be :%j!
thanks!
Post a Comment