Created
August 7, 2013 13:21
-
-
Save anotheremily/6173974 to your computer and use it in GitHub Desktop.
Force 80 Character Lines in Vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set textwidth to 80, move to the start of the file (can be done with Ctrl-Home or gg), and type gqG. | |
gqG formats the text starting from the current position and to the end of the file. It will automatically join consecutive lines when possible. You can place a blank line between two lines if you don't want those two to be joined together. | |