* Tim Chase on Tuesday, February 20, 2007 at 09:13:17 -0600:
> I'm still not 100% sure why I got this craziness:
> 
>>> inoremap <c-u> <c-o><nop><c-u>
>>> 
>>> This gives me a crazy
>>> 
>>> "E486: Pattern not found: insert"
>>> 
>>> which, I haven't searched for the word "insert" so this one makes
>>> me scratch my head.  Bug perhaps?  Vim-internals showing through?
> 
> to try and reproduce something similar, I did
> 
> vim -u NONE
> :set nocp
> :inoremap <c-u> <c-o><Nop><c-u>
> 
> inserted some text and hit control+U.  This time I got "E35: No 
> previous regular expression".
> 
> I suspect that the "<Nop>" isn't getting interpreted as the "do 
> nothing" operator as described at
> 
>       :help <nop>
> 
> but rather is being interpreted as "less-than, en, oh, pee, 
> greater-than" and the "en" portion of it is trying to look for 
> the last regexp.

Try (untested):

:inoremap <c-u> <c-o><lt>Nop><c-u>

See:

:help <>

c
-- 
Vim plugin to paste current GNU Screen buffer in (almost) any mode:
<http://www.vim.org/scripts/script.php?script_id=1512>

Reply via email to