Sunday, January 29, 2012

Re: [vim] Problem with `inoremap jj '

On Monday, January 30, 2012 2:24:55 PM UTC+8, Markus Osterhoff wrote:
* Clark J. Wang <dear...@gmail.com> [120130 07:01]:
> So I wonder if the `jj' mapping can be ignored when doing copy-n-paste and
> only work when I'm typing from a keyboard.
:set paste
do your paste
:set nopaste

I knew 'paste' can work that around.

My idea is to introduce a new option, say 'mapwait' which is a number in milliseconds. For example, if 'mapwait' is set to 100 then two 'j' chars entered in less than 100ms will not be considered as the `jj' mapping.

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