DEV Community

Discussion on: gg=G`` — my favourite Vim command

Collapse
 
pbnj profile image
Peter Benjamin (they/them) • Edited

Also, gq is similar to =. Example: gggqG

The behavior of = and gq are customizable via equalprg and formatprg options respectively.

See, :help =, :help equalprg, :help gq, :help formatprg for more info.