On Sunday, May 08, 2011 08:03:22 Lech Lorens wrote: > 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 you mention "xterm" in the subject here so my use of konsole adds another variable, but i have to ask -- is it appropriate to be setting 'lines' in either an xterm vim or a konsole vim? my understanding is vim can't change the window layout for either, it is handled by the window > 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. not in my konsole vim session -- for me the right window remains as it was, with the "600" at the bottom > After filling the second window for some reason the value of > 'lines' is reset to 62. that is apparently the size of your xterm -- after checking i found lines reset to 32 in both windows, the size of my konsole, and entirely unsurprising to me > 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. i for one can't reproduce this behavior, but apologize for not using xterm sc -- 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
