0

winsaveview() returns multiple details about the window including the leftcol which is the amount of horizontal scroll. However you need to switch to the window to get that. getwininfo() returns almost all information, for instance topline to determine the vertical scroll except the horizontal scroll. I'm just wondering if there is a way to horizontal scroll without window switching.

3
  • Isn't this the wincol attribute on getwininfo()? Commented Apr 15, 2022 at 15:47
  • Actually, maybe not; it says it's related to win_screenpos(). The two clauses there seem contradictory :( Commented Apr 15, 2022 at 15:47
  • @D.BenKnoble Nope. That is the position of the window from the left. Commented Apr 17, 2022 at 10:22

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.