4

I just learnt from a vimcast (#18) that one can format paragraphs justified. This seemed very attractive to me, but I had one problem with it: I use double spaces after the end of sentences to distinguish periods from abbreviation dots. Using set cpo+=J, par does not preserve these double spaces; can it be made to?

  • 4
    Found this, not tried: set formatprg=par\ 72q\ g1 " Use par for gq. use gw for internal formatting; g1 preserves double spaces after periods. Source: 8t8.us/configs/vimrc.txt – VanLaser Feb 14 '16 at 12:10
6

(Not to let this without an answer; even if a short one)

A quick digging on the internet shows the right par option: g1. To quote the source:

set formatprg=par\ 72q\ g1  " Use par for gq. use gw for internal formatting
                            " g1 preserves double spaces after periods.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.