Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 890 Bytes

README.rst

File metadata and controls

36 lines (23 loc) · 890 Bytes

Vim Adjust Scroll

This plugin attempts to automatically adjust your Vim viewport so that about 1/3 of the text you're looking at is above and 2/3 of the text is below your cursor.

This is achieved by scrolling automatically whenever:

  • You open another file
  • You jump a large distance in the current buffer

Take a look at the source if you're curious to how it works!

Installing

For NeoBundle add the following to your .vimrc:

NeoBundle 'dbakker/vim-adjustscroll'

For Pathogen, execute:

cd ~/.vim/bundle
git clone https://github.com/dbakker/vim-adjustscroll
vim +Helptags +q

That's pretty much it!

License

Copyright (c) Daan Bakker. Distributed under the same terms as Vim itself. See :help license.