Tuesday, March 2, 2010

Re: Typing accents

On Tuesday 02 March 2010 09:45:29 Stahlman Family wrote:
> John Culleton wrote:
> > I set the keymap to accents. Now, how do I type e.g. an acute accent in
> > French? I have tried typing 'e and \'e but all I get are those
> > characters.
>
> CTRL-K e' ==> é
> CTRL-K e` ==> è
>
> :help digraph
>
> Brett Stahlman
>
> > I am looking for a Vim only solution i.e. that does not require remapping
> > the system keyboard.

Thanks for the replies. I stumbled across another method:
set keymap=accents
set iminsert=1

Then in insert mode type <ctrl>k.
Now the digraph `a gives a a grave, 'a gives a a acute and so on. Note that
the digraphs are reversed using this technique.
The problem is shifting back to to regular keying. I don't know how to turn
off accenting other than set iminsert=0

--
John Culleton
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95
http://www.booklocker.com/books/4055.html

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

No comments:

Post a Comment