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?

1
  • 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, 2016 at 12:10

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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