Fandom

Vim Tips Wiki

Format paragraph without changing the cursor position

Redirected from VimTip347

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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).

Also on Fandom

Random Wiki