How do I format a text paragraph so that a new line is inserted at the end of each wrapped line?
‘gq’ command to format a paragraph. This will format the text according to the current ‘textwidth’ setting. Note that the gq operator can be used with a motion command to operate on a range of text. For example: gqgq – Format the current line gqap – Format current paragraph gq3j – Format the current and the next 3 lines For more information, read :help gq :help formatting :help usr_25.txt :help motion.txt 14.2.