Dear Vimmers,
A question and an observation...
The question:
Is there any way to configure scrolloff so that it maintains (say) 3
lines visible below the cursor even when you're at the end of the
file. I know I can bodge it with an autocmd, but it could get very
messy, so I was wondering if there was a built in way.
The observation:
As an aside, in :help scroll-cursor, there is a slightly misleading
comment (that I came across when I was trying to create a bodge
version of scrolloff). It says:
The following commands reposition the edit window (the part of the
buffer that you see) while keeping the cursor on the same line:
My reading was that the cursor would stay in it's existing place when
you run any of the commands. While this is true with the simplest
commands like "zb", if you prepend a count (e.g. 150zb), it will move
the cursor to line 150 (in this case) and therefore it isn't "keeping
the cursor on the same line". I'm not sure whether this is a bug (it
felt like one to me, but only because I expected it to leave my cursor
alone), but at the very least I think the description should be
accurate.
Thanks,
Al
--
http://sites.google.com/site/abudden
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---