Wikia

Vim Tips Wiki

Format paragraph without changing the cursor position

Talk0
1,613pages on
this wiki
Revision as of 05:25, July 13, 2012 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tip 347 Printable Monobook Previous Next

created 2002 · complexity basic · version 6.0


To format the current paragraph:

  • gqap
  • gwap same, but restores cursor position

CommentsEdit

 TO DO 

  • Thanks to anon who pointed out that gwap makes the original tip obsolete (I have removed it).
  • We don't have any other tips that explain basics of paragraph formatting, so this may as well be it.
  • Need to explain what "format" means here.
  • Need to mention textwidth, formatexpr, formatprg and probably more (but keep it simple).

Around Wikia's network

Random Wiki