tags:

views:

232

answers:

1

If using mouse wheel (or scrollbar) to scroll to the bottom of current buffer, then VIM allows to "scroll bellow" the bottom of the file. So that the last line appears at the top of current buffer. This brings much pain for me as for VIM newbie used to deal with other editors (especially MS VS).

Is there any way to disable "scrolling below the bottom"?

+2  A: 

Well, if you type 'zb' in command mode, the current line goes to the bottom of the screen. That won't really prevent your problem, but it's at least a quick way to fix it when it happens.

John Hyland