Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terryma/vim-smooth-scroll
Make scrolling in Vim more pleasant
https://github.com/terryma/vim-smooth-scroll
Last synced: about 2 months ago
JSON representation
Make scrolling in Vim more pleasant
- Host: GitHub
- URL: https://github.com/terryma/vim-smooth-scroll
- Owner: terryma
- Created: 2013-04-05T07:27:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-11-09T18:11:50.000Z (almost 5 years ago)
- Last Synced: 2024-06-18T15:41:29.224Z (3 months ago)
- Language: VimL
- Size: 124 KB
- Stars: 310
- Watchers: 7
- Forks: 36
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-smooth-scroll
## About
[vim-smooth-scroll] makes scrolling in Vim nice and smooth. Find yourself completely lost every time you use ```Ctrl-f``` or ```Ctrl-b```? You might want to give this plugin a try.## Installation
Install using [Pathogen], [Vundle], [Neobundle], or your favorite Vim package manager.## Quick Start
Map your favorite keys like below:```vim
noremap :call smooth_scroll#up(&scroll, 0, 2)
noremap :call smooth_scroll#down(&scroll, 0, 2)
noremap :call smooth_scroll#up(&scroll*2, 0, 4)
noremap :call smooth_scroll#down(&scroll*2, 0, 4)
```## Function
```smooth_scroll#up``` and ```smooth_scroll#down``` both take the following 3 parameters. Customize it however you like
- __Distance__: This is the total number of lines you want to scroll
- __Duration__: This is how long you want each frame of the scrolling animation to last in __milliseconds__. Each frame will take _at least_ this amount of time. It could take more if Vim's scrolling itself is slow
- __Speed__: This is how many lines to scroll during each frame of the scrolling animation[vim-smooth-scroll]:http://github.com/terryma/vim-smooth-scroll
[Pathogen]:http://github.com/tpope/vim-pathogen
[Vundle]:http://github.com/gmarik/vundle
[Neobundle]:http://github.com/Shougo/neobundle.vim