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
Now you can quickly resize the paragraph by selecting it in Visual mode and
Watch the demo below!
July 13, 2012