Vim: make gq disinfect '.' as the end of the sentence

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

I would like gq to handle '.' like the end of a sentence in latex. Combined with a large value tw

, intent will automatically reformat the paragraph into a list of lines.

(FYI, this is a much better way to edit latex if you're interested)

+2


source to share


1 answer


When I edit Latex I use

:imap <Space><Space> <CR>

      

Don't feel like you need to reformat your tricks.




Paul Biggar comments that a similar solution works for people who didn't use two spaces at the end of each sentence:

:imap .<Space> .<CR>

      

+3


source







All Articles