Re: Vim's ole functionality

2007-04-22 Thread Bram Moolenaar

Nageshwar wrote:

   I tried to embed the vim in eclipse using swt library. I used
 program id as Vim.Application. but i got an error. The error message
 that i got was
  org.eclipse.swt.SWTException: Failed to create Ole Client. result
 = -2147221164
 I tried to embed some other applications like actorbat pdf viewer, IE
 etc., they are working perfectly.
 I guess there is some problem with vim's ole interface implementation.
 can anybody help me..

Did you run gvim -register?

-- 
Engineers understand that their appearance only bothers other people and
therefore it is not worth optimizing.
(Scott Adams - The Dilbert principle)

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


possible bug with vim7 and the arrow keys

2007-04-22 Thread Виктор Кожухаров
Hello,

I think there might be a bug with vim7, and they way it handles the
arrow keys in a terminal.
The problem is, that in insert mode, the arrow keys don't navigate
through the text, but output letters. For example, pressing Up in
insert mode would do the equivalent of OAEsc in normal mode. All the
arrow keys are printing the letters that are part of their escape codes
in the line above the current one.
Also, the reason I think this is a bug is that, on the same machines,
vim6 works correctly. the TERM variable is set to xterm in both the
terminal and in vim, and this behaviour occurs in any terminal.
Furthermore, none of the timeout options have any effect on this
behaviour.
Vim has been compiled with +terminfo and +termresponse against
ncurses-5.6
-- 
Виктор Кожухаров /Viktor Kojouharov/


signature.asc
Description: Това	 е цифрово	 подписана	 част от	 писмото


Re: possible bug with vim7 and the arrow keys

2007-04-22 Thread A.J.Mechelynck

Виктор Кожухаров wrote:

Hello,

I think there might be a bug with vim7, and they way it handles the
arrow keys in a terminal.
The problem is, that in insert mode, the arrow keys don't navigate
through the text, but output letters. For example, pressing Up in
insert mode would do the equivalent of OAEsc in normal mode. All the
arrow keys are printing the letters that are part of their escape codes
in the line above the current one.
Also, the reason I think this is a bug is that, on the same machines,
vim6 works correctly. the TERM variable is set to xterm in both the
terminal and in vim, and this behaviour occurs in any terminal.
Furthermore, none of the timeout options have any effect on this
behaviour.
Vim has been compiled with +terminfo and +termresponse against
ncurses-5.6


Don't you have one version compiled with +terminfo and the other with -terminfo?

Are both versions running with the same value of 'ttybuiltin'?

Is 'term' left at its default?

Try the following in both versions:

:echo has(terminfo)
:set term? ttybuiltin?

Each of the above might explain (with a badly-set-up system) the difference in 
behaviour you're seeing.


Also, does it get better or worse if you run vim7 or vim6 (try both) as

vim -u NONE -N

to avoid loading the vimrc, gvimrc and plugins?


Best regards,
Tony.
--
If a camel flies, no one laughs if it doesn't get very far.
-- Paul White