How to justify lines in Vim
Set your text width. For this example, we'll use 80 characters.
:set textwidth=80
Now put your cursor on a line to justify and type the following command,
gq)
Or you can type gq and then a direction such as j or k.
References
[Click to add or edit comments])
Please prepend comments below including a date