How to apply new textwidth to whole buffer in Vim

vim

Solution

See

:help gq

if it helps.

Problem

I've changed the `textwidth` option mid-way through my file and I'd like to reformat the whole buffer to use the new width. What's the quickest way to do this? Solution - Vim documentation topic gq

Original source