While using git
and other versioning systems, it is very useful that text lines occupy no more than (say) 80 characters. It is also more comfortable to edit text with vi
if lines are note excessively long.
I like to write my text so that each sentence begins in a new line, e.g.,
The design of a programming language is a delicate art of balancing
between conflicting trade-offs.
On the one hand, to make the language appealing, the language
designer would like to equip future programmers with a variety
of powerful and useful abstractions.
On the other hand, the folk-lore of language design is that any
feature added to a language collects its tolls.
Such tolls may result in reduced elegance of the design,
a steeper language learning curve,
and complication of the construction of language processing tools.
My co-author, who uses TeXMaker
favors the convention of one line per paragraph. The above would look like
The design of a programming language is a delicate art of balancing between conflicting trade-offs. On the one hand, to make the language appealing, the language designer would like to equip future programmers with a variety of powerful and useful abstractions. On the other hand, the folk-lore of language design is that any feature added to a language collects its tolls. Such tolls may result in reduced elegance of the design, a steeper language learning curve, and complication of the construction of language processing tools.
What are the prospects of an attempt to implement a script to convert back and through the two conventions automatically? The main difficulty, so I believe is to identify periods, or other punctuations that end sentences. Dealing with parenthesized sentences etc. Ignoring the most frequent LaTeX
macros would also be handy.
gq
to break the lines, andJ
to join the lines back together.vipJ
will runJ
on the "inner paragraph". – Martin Tournoij Mar 28 '16 at 14:46gq
is not a good idea in terms ofgit
. Every little change in a paragraph will confusegit
– Yossi Gil Mar 28 '16 at 14:57git
revision, in the preferred format. – VanLaser Mar 28 '16 at 21:49