Vim: Linebreak at 80 characters
Posted: Mon Aug 06, 2018 10:52 pm
If you want to quickly format a plain text into a certain-character-width, here's how to do it in Vim:
Set the text-width to 80 characters:
Then the following options are at your service:
Thanks to an answer from "he_the_great" on Stackoverflow.
Set the text-width to 80 characters:
Code: Select all
:set tw=80
Code: Select all
gq{motion} % format the line that {motion} moves over
{Visual}gq % format the visually selected area
gqq % format the current line
...
Thanks to an answer from "he_the_great" on Stackoverflow.