Philippe De Muyter wrote:
> On Sun, Oct 22, 2000 at 10:20:34PM +0200, Bram Moolenaar wrote:
>> [...]
>> The default digraphs now correspond to RFC1345. Most are different from
>> what was used in Vim 5.x. Do we care about this incompatibility?
>>
> 
> I only noticed that now, switching my linux distro to suse 10.3, and yes, I
> really care.  I am a french-speaking programmer, so I use a qwerty-us keyboard
> beacause it is much easier for programming, but I need sometimes to
> produce french texts.
> 
> Previously, I could use the CTRL-K combinations with ` (backquote or grave)
> to introduce grave accents, ^ (circumflex) for circumflex accents and " for
> diaeresis, juste like on a typing machine.
> 
> RFC1345 recommends :
> 
>       ! instead of ` for grave accent
>       > instead of ^ for circumflex accent
>       : instead of " for diaeresis
> 
> Frankly I do not understand why RFC1345 has choosen that.

I guess: because more national keyboards have them, and/or they are more 
consistent with the rest, like ( for breve, < for caron (as on the initial C 
in the Czech version of the adjective "Czech"), etc.: in many cases, the 2nd 
part of the digraph moves 90° up to get above the first part, rotating all the 
while. One exception is - (macron) which doesn't rotate, but in this case it 
didn't strike me as weird when I first needed it.

I don't understand why you believe that "a us-qwerty keyboard is much easier 
for programming", but, well, there's no reckoning with individual tastes. (I 
have a Belgian AZERTY keyboard and I like the way it satisfies my needs, both 
for programming and for text writing in almost every Latin-alphabet language 
except Hungarian.)

> 
> I know I can add digraphs in .exrc, but it seems to me more logical to add
> the french-writing typist combinations directly in the default digraphs of 
> vim.

The reason the vimrc is there is to allow every Tom, Dick and Harry to 
customize Vim according to his own preferences. Maybe someone else would want 
that Danish-typist preferences or Vietnamese-typist preferences (whatever they 
might be) be added to the Vim digraph repertoire. You prefer the French ones: 
go ahead and add them. You need think of it only once, by adding them to your 
vimrc; thereafter they will be added automatically whenever you start Vim, 
like I have the following in my own vimrc:

" Ctrl-K comma colon (in Insert mode): UTF-8 single-codepoint ellipsis "..."
" disregard error if (for instance) not in UTF-8
if has("digraphs")
        silent! dig     ,:      8230            " HORIZONTAL ELLIPSIS
endif


> 
> Of course, I do not ask for removal of the !, > and : sequences, only their
> duplications with their `, ^ and " counterparts.
> 
> Thanks for reading so far
> 
> Philippe De Muyter


Best regards,
Tony.
-- 
Q:  Why do ducks have flat feet?
A:  To stamp out forest fires.

Q:  Why do elephants have flat feet?
A:  To stamp out flaming ducks.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui