Le vendredi 24 juillet 2015 à 10:01, aubertin.sylvain a écrit:
> Le mardi 21 juillet 2015 10:02:15 UTC+2, aubertin.sylvain a écrit :
> > For instance I should like to make F9 stand for papa
> > Following VIM Manual (by Moolenaar) I type :
> > :map <F9> ipapa<Esc> (5 characters for <Esc> and 4 characters for <F5> )
> > But it doesn't work. Instead of « papa « , it returns <F9>
> > Something is wrong, but where ?? Thanks for your reply.
>
> Following Zyx I looked at :h :map-special-keys, in which I found the following example: :map <F9><Esc>OP :echo "yes"<CR>
> Ityped it and vim replied: impossible to modify, 'modifiable' is desactivated.
> So there is somewhere the possibility to activate 'modifiable'. Do you know where? MANY THANKS
That's because you must have tested the mapping in a buffer containing
the help file, which is non-modifiable by default (and you probably
don't want to modify it). Try it with an ordinary buffer.
Anyway the answer to your original request was probably John's reply:
you're looking for an insert mode mapping and you have defined a
normal mode one instead.
Best,
Paul
--
--
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