> * wei gao [2011.04.01 02:40]:
> > I want to add ";" to the end of line when coding. So, I add the following
> > map in vimrc. however, it's not working for me (if I change to <C-e>, it's
> > OK). Anybody know why? <C-;> is mapped to a special command already?
> >
> > :inoremap <C-;> <C-o>A;
>
> ... snip ...
>
> So, long story short, the reason you can't map <C-;> is that there is no
> such character.
>
This is true. One way to get around it is to remap Ctrl+; at the OS level to
something usable, like Ctrl+e. I use KeyRemap4Macbook to do this on OS X, and I'm
sure there's something similar for Windows/Linux.
--
Steve Losh
--
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