On 13/02/10 13:08, Jean Johner wrote:
Hello,
I have compiled vim7.2 on a Redhat Linux system using the default
compiling options.
Everything works fine except the following:

Open a file with gvim
Go to the beginning of a file (gg). The cursor is positionned on the
first character of the file.

Type ctrl-f (or page down)
Type ctrl-b (or page up)
The first line displayed is the second line of the file. The cursor is
positionned on the last but one line displayed.

Same problem with vim

No problem with the Windows installation.

Has somebody had the same problem? Is there a patch?

Thank you for your help.

Jean Johner


Works for me in gvim 7.2.359 (Huge) with GTK2/Gnome2 GUI, both in GUI mode and in Console mode, regardless of the 'scrolloff' setting. (The fact that the cursor comes back on the bottom line but one might indicate 'scrolloff' set to 1; the default is 0).

Sample test case:
1. Hit F1
        The help.txt helpfile is displayed, cursor at top.
2. Ctrl-F Ctrl-F
        Scrolls by two pages, cursor at top (or near top if 'scrolloff' nonzero)
3. Ctrl-B Ctrl-B
Scrolls back up to top of file; cursor is at bottom of screen (or near bottom if 'scrolloff' nonzero).

Text movement is as expected. The fact that the cursor ends up near bottom is also normal, and is due to the fact that the cursor can never be off-screen in Vim: if you scroll the cursor line off the screen, the cursor is "dragged" to within the current window.

End result is the same with only one of each Ctrl-F Ctrl-B, or with ":only" between steps 1 and 2 to get rid of the non-help window.

Any nonstandard plugins installed?

Is there a "system vimrc" on your RH system? (check its location, it's printed near the middle of the output of :version). If there is, anything suspicious in it? Mappings? Non-standard option settings?

If there is no such system vimrc, are you using the same vimrc on Windows and Linux? The exact same file? If different copies of (supposedly) the same file, try placing both copies (under different names or in different directories) on the same computer, and run vimdiff between them (vimdiff needs diff, which is not always installed on a Windows system, so maybe you should run vimdiff on the Linux system).

You could try repeating the test with Vim (or gvim) invoked as follows:

vim -N -u NONE
        no vimrc, no plugins

vim -N -u NORC
        no vimrc, plugins as normal

vim --noplugin
        with vimrc if you have one, without plugins

vim -u NORC --cmd 'runtime vimrc_example.vim'
replace your vimrc (if any) by the example one distributed with Vim, otherwise start normally


Best regards,
Tony.
--
May a Misguided Platypus lay its Eggs in your Jockey Shorts

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to