scripting - How to: assign vim cursor to a certain line in the window and have the text scroll underneath that cursor position? -
You can place the cursor line in the center of the screen, and then a large number of scrolloff prefix:
Read more about how this works:
: Help Scrolloff
I love this feature and have to use it all the time, but I would like the ability to place the cursor at other places in the center of the screen. For example I would like the ability to place the cursor at the top of the window and scroll down the file on it. I am pretty sure that nothing is available in VIM due to this, so I was thinking that anyone who came with light-like Vime Script snippet (or any such script could come) to do this. ? "Scrollfix shortcut function! Toggle MESCrolfix () if (G: Scrollfix == 5) let G: scrollfix = 50 otherwise (g: scrollfix == 50) f: Scrollfix = 95therif (g: scrollfix == 95) f: scrollfix = 5 and two g: scrollfix = 50 endif endfunction nnoremap & lt; mute & gt; zz: call togglemescrollix () Check out. A few years ago, I do not know whether it is still the latest of VIM Will work with snapshots - but worst of all, it will help you Should be very good start to modify it to work.
Comments
Post a Comment