On 11/03/10 10:52, Germain wrote:
Hi

The first option does not work, that :

au VimEnter * au FileType tex silent! unmap!<buffer>

The é (e-acute) is missing at the end.


does not fix the problem

Nevertheless, I found a solution. I created the file tex.vim in ~/.vim/
ftplugins/ and I add the following line :

imap<buffer>  <m-c>  <Plug>Tex_InsertItemOnThisLine

Actually you have to create the file and just put this line. But you
have to take care of the mapping you create. For that your list of Alt-
key equivalents was really helpfull because I was able to selec a
character (here a with a tilde) which is not use in french.

Thanks for your help


For "a character not in use", the safest ones in Vim are usually the Fn and Shift-Fn keys (on Linux, Ctrl-Fn and Alt-Fn are not always passed to the program, and Ctrl-Alt-Fn never are), so you could e.g. have used <F9> with the quasi-certainty of not creating a clash (unless, of course, you already use it for some other mapping).

Best regards,
Tony.
--
Tertullian was born in Carthage somewhere about 160 A.D.  He was a
pagan, and he abandoned himself to the lascivious life of his city
until about his 35th year, when he became a Christian .... To him is
ascribed the sublime confession: Credo quia absurdum est (I believe
because it is absurd).  This does not altogether accord with historical
fact, for he merely said:

        "And the Son of God died, which is immediately credible because
        it is absurd.  And buried he rose again, which is certain
        because it is impossible."

Thanks to the acuteness of his mind, he saw through the poverty of
philosophical and Gnostic knowledge, and contemptuously rejected it.
                -- C. G. Jung, in Psychological Types

(Tertullian was one of the founders of the Catholic Church).

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

Reply via email to