Friday, March 4, 2011

Re: Mystery vim7 versus vim6.4 - same term, different results

Responding here (on list) instead of to a personal email. Copy-pasted
below.

On Fri, Mar 4, 2011 at 2:45 AM, howard Schwartz <howardb21@gmail.com>
wrote:
> Thanks for your feedbac. Here are some answers to your questions:
>
>> You're *certain* all the config files are the same?
>
> Absolutely.
>
>> There have been over 100 patches to the Vim 7.3
>
> I used no patches, in fact, I did not build vim 7.3. I got the binary
> directly from sunfreeware. In fact, I tried compiled 7.3 binaries for
> several versions of SunOS. They all had the same problem.
>

What I meant was that Vim is now at version 7.3.138. You apparently
are using 7.3.0. This is probably OK--I do not see any bug fixes
related to screen drawing or special keys--but you are missing out on
a lot of bug fixes and minor feature additions.

>> Compare (if you can) the output of
>> the :scriptnames command in both versions of Vim.
>
> No need to. vim's runtime path is not defined, so both versions of vim are
> run without installing any scripts.
>

Vim ships with a ton of runtime files which control all sorts of
functionality. In addition, your system may have a "system vimrc"
which runs before your own config files. Are you telling me that none
of Vim's runtime files are installed? If so I would almost expect you
to encounter problems. Additionally you tell us that all the config
files are the same. Is what you really mean, "I have no config files"?
I.e. do you have no ~/.vimrc, no ~/.vim, AND no environment variables
set which affect Vim startup?

>> In what way does the screen display change?
>
> I login to a terminal window using putty, and term is usually set to xterm.
> With this setting, for instance, vim 6.4 maps the page-down key correctly,
> and it behaves simlar to ctrl-d. With version 7.3 -- absolutely everything
> else held constant - the Page-down key behaves like the j key. That is,
> page-down moves the cursor down one line at a time. Examining the keyboard
> mapping,
> t_kN for page down changes to a different escape sequence, when I change
> from 6.4 to 7.3. I can fix this by resetting term to xterms instead of
> xterm.
>

You mention a few specific key mapping problems (thanks, that should
help somebody) but your original email mentions that "the screen
display changes". What sort of changes do you see?

> However, with all init files, shell variables -- everything the same -- why
> does 7.3 map keys differently for term=xterm compared to version 6.4?
> One might think a different terminfo file is being read, but all the shell
> variables are the same. Perhaps 7.3 has different builtin terms than 6.4.
> But I set ttybuiltin to off in both cases.
>

I do not know enough about how terminals work or how Vim interacts
with them to be of much help here. Someone else should be able to pick
up from here if you keep the discussion on-list.

One thought I have, is that even if all your config files are the
same, Vim is very configurable at compile time. Were both versions of
Vim compiled with the same options? Compare the output of the :version
command from each Vim version. If one is HUGE and one is TINY (for
example), or if one is compiled with specific features the other is
lacking, this could be another source of problems.

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