Hi, ChengHsin Hsu wrote: > > I recently start using vim for writing tex files. I found that an > extra space is always added between lines after reformatting (e.g., > "gq}"). > > For example: > Original text: > a...b > c...d > d...e > > Reformatted text: > a...b c...d d...e > > Is there an option that I can override this behavior?
I don't think so, but you might want to give v}gJgqip a try. The "v}gJ" first joins the text from the cursor position up to the end of the current paragraph into one line without inserting spaces. Then "gqip" reformats the whole paragraph. But guessing from your e-mail address: do you need this behaviour for writing chinese texts? If so then you should have a look at the flags 'B' and 'M' of the formatoptions option (see :help formatoptions and :help fo-table). Perhaps they are more appropriate. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin)
