Skip to Content

Vim - Reformat file

Posted on

In Vim, if you want to ensure that no line is more than 80 characters, you should do set tw=80 on your .vimrc file. After that, visual the line you want to format and type gq

comments powered by Disqus