Thursday, March 16, 2017

Re: Automatically add two spaces between sentences

You can make one iabb turning ".<space>" into ".<space><space>" and another, e.g. ".~" for generating ".<space>" when you really want that. You can also have separate iabbs for the most frequent abbreviations expanding to themselves, like Mr. in English.

/bpj



Den 15 mar 2017 10:12 skrev "Erik Christiansen" <dvalin@internode.on.net>:
On 14.03.17 22:20, Vim the Best wrote:
> When we use Vim, what's the best way to add two spaces between
> sentences automatically rather than manually press the space bar
> twice?

Perhaps you could use an iab, if necessary, using e.g. ".." for ".  ".
It still saves one keystroke, and does not make it impossible to enter
". ", for some other case. (OK, it does clobber a longhand ellipsis, so
maybe some other iab?)

> Additionally by default, when we join two sentences with one on top of
> the other, there would be two spaces between them after joining. What
> do we need to do to achieve the similar effect with Vim automatically
> when we are typing?

:help joinspaces

It is the default, so you should see it, unless you have:

set nojoinspaces

Erik

--
--
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.

--
--
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:

Post a Comment