Hi Vince,

Vince Negri wrote:
> 
> I don't understand the description of the problem. You say you run
> 
>   gvim -d -u NONE --cmd "set so=99" old-version.txt new-version.txt
> 
> But that is setting scrolloffset, not cursorbind. I don't see where
> cursorbind is being enabled.

it seems cursorbind was set by invoking gvim with the -d flag. You can
check this with the attached files. After executing the above command

  :windo verbose setlocal cursorbind?

shows

    cursorbind
    cursorbind

If you replace the -d flag with -O, the :windo command shows

  nocursorbind
  nocursorbind

With the attached files you can also reproduce the behaviour mentioned
in my first mail. It seems so=99 is not necessary for this, just run

  gvim -d -u NONE old-version.txt new-version.txt

and enter

  22j

The cursor is now on the last line in the left window ("these lines")
and the right window has been scrolled upwards by two lines, showing
the missing lines (represented by dashes) above the corresponding block
of the left window. This does not happen if cursorbind is reset in at
least one of the windows.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

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

line  1
line  2
line  3
line  4
line  5
line  6
line  7
line  8
line  9
line 10
line 11
line 12
line 13
line 14
line 15
line 16
line 17
line 18
line 19
line 20
line 21
line 22
these lines
are missing
line 23
line 24
line 25
line 26
line 27
line 28
line 29
line 30
line 31
line 32
line 33
line 34
line 35
line 36
line 37
line 38
line 39
line 40
line 41
line 42
line 43
line 44
line 45
line 46
line 47
line 48
line 49
line 50
line  1 modified
line  2 modified
line  3 modified
line  4 modified
line  5 modified
line  6 modified
line  7 modified
line  8 modified
line  9 modified
line 10 modified
line 11 modified
line 12 modified
line 13 modified
line 14 modified
line 15 modified
line 16 modified
line 17 modified
line 18 modified
line 19
line 20
line 21
line 22
line 23
line 24
line 25
line 26
line 27
line 28
line 29
line 30 modified
line 31 modified
line 32 modified
line 33 modified
line 34 modified
line 35 modified
line 36 modified
line 37 modified
line 38 modified
line 39 modified
line 40 modified
line 41 modified
line 42 modified
line 43 modified
line 44 modified
line 45 modified
line 46 modified
line 47 modified
line 48 modified
line 49 modified
line 50 modified

Raspunde prin e-mail lui