Friday, April 2, 2010

Re: ctrl-k mapping not working

* Tony Mechelynck <antoine.mechelynck@gmail.com> [100403 03:20]:
> >imap <expr> <c-k> pumvisible()?"\<C-P>":"\<esc>"
> AFAIK, this key is not remappable. Don't know if it's intended or an
> oversight, but the help says that its operands are not considered
> for mapping.

I do. I have this line in my vimrc:

inoremap jff <c-k>|inoremap <c-k> <esc>

It works. But rather doing gvim or gnome-terminal, I use urxvt.
--
Florian "eix" Rehnisch <eixman@gmx.de> +49-1520-9573489
GPG 1CF2467F ICQ 99773910 eix_@{freenode,ircnet,debian}
Vim-Hilfe - auf Deutsch: http://tinyurl.com/vim-help-de
http://tinyurl.com/xxxterm-eix -- Webbrowser a la Vi(m)

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

To unsubscribe, reply using "remove me" as the subject.

No comments:

Post a Comment