formatting - Automatically Break/Merge Lines in Vim -
i'm creating document in latex , lines broken @ 80 characters. easy manually when writing new text, editing of old text leads lines longer or shorter. fixing leads other lines need changed , on.
is there automatic way in vim break lines after 80 characters , merge them if possible?
to make lines 80 characters long can use textwidth
assuming latex file has extension .tex
can add following line vimrc
autocmd bufreadpost *.tex setlocal textwidth=80
to format current paragraph can use gqap
Comments
Post a Comment