CONTEXT: Part of a job I’m doing involves pasting paragraphs of text from a word doc into a ruby file.
PROBLEM: These paragraphs are getting pasted in as a single very long line of text and I have to manually insert newlines to make the lines of reasonable length.
SOLUTION: Is there a way to make the pasting function “aware” of reasonable margin limits and wrap the text when I paste it in?
first do a set textwidth
then do
gqq– for a single linefor the whole file