Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 377 Bytes

2020-06-29_format-a-paragraph.md

File metadata and controls

16 lines (9 loc) · 377 Bytes

Format a paragraph

Writing this here because I always forget about it:

Use gq

Two approaches I like:

  • select the pagraph in visual line mode and type gq
  • use gqip where ip stands for inner paragraph

Use the textwidth/tw config to set the length of a paragraph line:

:set tw=80

Source: https://vim.fandom.com/wiki/Automatic_formatting_of_paragraphs