Resize a Visual selection block to 80 width in VIM

Quick VIM tip today: Resizing a Visual selection block.

Suppose you have a paragraph of text in a markdown document. You want this paragraph to be composed of lines with a maximum width of 80.

First, set your textwidth to 80 via :set tw=80.

Now you can quickly resize the paragraph by selecting it in Visual mode and executing gq.

Watch the demo below!

July 13, 2012
About the Author:

Joseph is the lead developer of Vert Studios Follow Joseph on Twitter: @Joe_Query
Subscribe to the blog: RSS
Visit Joseph's site: