How to format a paragraph/whole file in vim?

If you want to format a paragraph in vim, you should use the following:

  • gqap

If you want to format a whole file in vim, you should use the following:

  • gqG

For more details, use help fo where fo stands for format-options

Slavisa Jovanovic
Slavisa Jovanovic
Associate Professor (Maitre de conférence HDR)

My research interests include circuits and systems for AI and energy harvesting circuits.