> After defining the function and map as mentioned above. Then open any
> file that has many lines and execute map ,vi. and move cursor down
> somewhere and then execute map ,vi. you will see the problem I am
> mentioning. I asked to press CTRL-F multiple times bcoz I don't see
> this abnormal behaviour occurs in first page of the opened file.
I think I see the problem. The point is, that setpos() won't restore the
cursor on the same window line, it was before. Therefore the display
scrolls a little bit to the center.
The obvious fix would be to use winsaveview/winrestview
regards,
Christian
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment