How to word-wrap a whole document at once (to 79 characters, in this example):
:set tw=79 :set fo=t 1GVGgq
Thanks
Instead of '1GVGgq' you can use 'gggqG'. Using visual ('VG') may be slower. (( gg - go to top, gq - reformat to.., G - go to bottom ))
2 Comments
Thanks
Instead of '1GVGgq' you can use 'gggqG'. Using visual ('VG') may be slower. (( gg - go to top, gq - reformat to.., G - go to bottom ))
Speak your Mind
Preview