Monday, August 6, 2018

Re: Formatting text and using the convention of putting 2 spaces after a period

On 2018-08-06 14:47, John Little wrote:
> So, for text to be rendered properly in a variable width font one
> space is best, but with a monospace font, aka a typewriter font,
> such as vim uses, some of us cling to two spaces.

I still use two spaces in my source material particularly because I
can `:set cpo+=J` and Vim will be smart enough to navigate by
sentence even if I have intermediate punctuation that might otherwise
be considered terminal. E.g.

I saw Dr. Smith yesterday. She lives on Oak St. with her husband.

Using ")" and "(" will navigate by true sentences and the "is"/"as"
text-objects refer appropriately to the sentence, not getting tripped
up by the "Dr." and "St." With `cpo-=J`, navigating with ")" and "("
will land on [S]mith and [S]he, and "dis" will only delete a portion
of my sentence.

That said, I usually write in some form of markup (usually HTML but
sometimes Markdown or occasionally LaTeX) and then render them to
HTML or PDF output with whatever the renderer deems an appropriate
amount of inter-sentence spacing---an amount I don't really care
about as long as it looks reasonable. :-)

-tim




--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: