Closed bryphe closed 3 years ago
This change implements a vimSetScrollCallback(&onScroll) method, which triggers a callback whenever any cursor-relative scroll commands are initiated:
vimSetScrollCallback(&onScroll)
Vertical:
zt
z<CR>
zz
z.
zb
z-
Horizontal:
zs
ze
This change implements a
vimSetScrollCallback(&onScroll)
method, which triggers a callback whenever any cursor-relative scroll commands are initiated:Vertical:
zt
/z<CR>
- window positioned such that cursor is at the topzz
/z.
- window positioned such that cursor is centeredzb
/z-
- window positioned such that cursor is at the bottomHorizontal:
zs
- window positioned such that cursor is at the left side of the screenze
- window positioned such that cursor is at the right side of the screen