Thursday, October 5, 2017

Re: Automatically insert a special character at the beginning of a sentence

Steve wrote:
> Le 05-10-2017, à 10:10:26 +0200, Tony Mechelynck a écrit :
>
>> It's dangerous, because in French, the letter A (even at the start of
>> a sentence) is often (more often than not, I guess) the uppercase
>> counterpart of unaccented a — and in that case it must not get an
>> accent. So if you mapped _all_ start-of-sentence A's to À you would
>> find yourself needing to correct many intances of À (and É and…) to
>> remove those pesky accents.
>
> You are totally right Tony. I was thinking at only one use case,
> forgetting all the others…
>
>> What you could do is use a keymap, $VIMRUNTIME/keymap/accents.vim
>> maybe, or maybe an owncoded one, so that you could type just `A rather
>> than Ctrl-K A!, and similarly just 'E instead of Ctrl-K E' etc.
>
> That could be a solution indeed, if I'm able to not forget that :)
[snip]

FYI -- the EasyAccents plugin
(http://www.drchip.org/astronaut/vim/index.html#EASYACCENTS), I think,
makes accents fairly easy:

A' -> Á
o@ -> œ

etc. Turn it on with :EZA and off with: :EZA . You can switch the A'
transformation to 'A by changing a variable: g:EasyAccents_VowelFirst,
so whichever way works for you is fine with EasyAccents.

Regards,
Chip Campbell

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