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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -