2

Related to vim-how-to-reformat-a-set-of-lines-into-a-single-lines-if-the-line-is-a-single

I'd like gq to treat a '.' as the end of a sentence in latex. Combined with a high value of tw, the intention is automatically reformat a paragraph into a list of lines.

(FYI, this is a much nicer way to edit latex, if you are wondering)

Community
  • 1
  • 1
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152

1 Answers1

3

When I edit Latex, I use

:imap <Space><Space> <CR>

Don't think that it needs reformatting tricks.


Paul Biggar comments out that the similar solution works for people not used to putting two spaces at the end of each sentence:

:imap .<Space> .<CR>
Community
  • 1
  • 1
P Shved
  • 96,026
  • 17
  • 121
  • 165