ZyX wrote:

> It looks like that is another difference between user and non-user input: the 
> following commands produce the same result:
>     vim -u NONE -c 'set nocompatible' \
>                 -c 'call feedkeys("a\<C-o>ch-\ea\e:wq! result.txt\n")'
> and
>     vim -u NONE -c 'set nocompatible' \
>                 -c 'execute "normal a\<C-o>ch-\ea"' \
>                 -c 'wq! result.txt'
> So the only one that behaves as I expect is
>     echo $'a\C-och-\ea\e:wq! result.txt\n' | vim -u NONE -c 'set nocompatible'

If you use ":normal" or "feedkeys()" you can expect slightly different
behavior.  This probably won't change, even though it may seem
illogical, because scripts depend on the current behavior.

Like I said before, unless something really doesn't work, we should not
call it a bug.  Unexpected behavior perhaps.

-- 
CUSTOMER:     You're not fooling anyone y'know.  Look, isn't there something
              you can do?
DEAD PERSON:  I feel happy... I feel happy.
    [whop]
CUSTOMER:     Ah, thanks very much.
MORTICIAN:    Not at all.  See you on Thursday.
CUSTOMER:     Right.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui