I followed the steps suggested by sc in <[email protected]> in the discussion about scrolling with scrolloff and lines set to certain values and added one more step.
I do: vim -u NONE -U NONE :r!seq 100 :set lines=25 so=12 ls=0 gg " Scroll so that line that says "39" is at top: 39<C-e> " Scroll one more line: <C-e> " Create a new window and put it on the right: <C-w><C-n><C-w>L " Fill the buffer in the new window: :r!seq 500 600 Now go to the previous window: <C-w><C-w> and try to scroll it to the top by pressing <C-y>. After the first press the contents of the right window disappear. When I scroll to the top the left window says that the first line of the buffer contains "36" and the following lines contain consecutive integers. After filling the second window for some reason the value of 'lines' is reset to 62. I believe that the essential parts of this procedure are: - scrolling one more line after a larger scroll, - that the second window is put to the right of the first one. -- Cheers, Lech -- 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
