1 Star 0 Fork 1

bleachangel/vim-smooth-scroll

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
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:

noremap <silent> <c-u> :call smooth_scroll#up(&scroll, 0, 2)<CR>
noremap <silent> <c-d> :call smooth_scroll#down(&scroll, 0, 2)<CR>
noremap <silent> <c-b> :call smooth_scroll#up(&scroll*2, 0, 4)<CR>
noremap <silent> <c-f> :call smooth_scroll#down(&scroll*2, 0, 4)<CR>

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

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/durianpancake/vim-smooth-scroll.git
git@gitee.com:durianpancake/vim-smooth-scroll.git
durianpancake
vim-smooth-scroll
vim-smooth-scroll
master

搜索帮助