Eddy
Eddy

Reputation: 6871

vim-latex: how to do automatic carriage return when linewidth reached?

When I was using emacs with the auctex plugin, there was a mode called auto-fill-mode which would automatically insert a carriage return whenever the linewidth was reached, instead of creating one really long line as you carry on typing.

Is there something similar in vim-latex?

Upvotes: 2

Views: 1893

Answers (1)

Don Reba
Don Reba

Reputation: 14061

Look up the textwidth option.

:set tw=80

You can also reformat existing text with respect to this option using the gq command.

Upvotes: 9

Related Questions