GithubHelp home page GithubHelp logo

vim-smooth-scroll's People

Contributors

terryma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-smooth-scroll's Issues

Conflict with NERDTree?

I can only use this when NERDTree is showing. When I :NERDTreeToggle the NERDTree split away, Ctrl-D and Ctrl-U go back to standard scrolling. When I toggle the split back, the scrolling works again? Has anyone else experienced this?

Counts bork the scrolls

50<c-d> will make the screen flicker really badly for a while, and then it ends 49 rows below the destination that a single <c-d> would've gotten.

Doesn't work with all filetypes

I noticed that for some filetypes it doesn't work at all (e.g. tmux, conf).

For example, in any given file, if I exec set filetype=ruby, smooth scrolling works fine, but as soon as I exec set filetype=conf it stops working.

Incorrect behaviour with wrapped text

When a line is too long to fit the screen and wrap to the next visible line (it appears as multiple lines on the screen, even though there is only one line number), as seen on the attached screenshot, the command Ctrl-e and Ctrl-y on which the plugin is based make a jump of more than one visible line. The result is when I have many wrapped lines in a text, the smooth scroll scrolls much more than intended, rendering it useless.
Screenshot_20200923_102613

Is there a way to change this behavior to the command Ctrl-e and Ctrl-y in the vimrc ? or any other command that can replace it ?

Bug using Float as String

There's a bug inside the get_ms_since function. It tries to use a float as a string.
Vim runs very slowly/crashes due to the above.

#17 fixes this.

not working for me at all

I don't see any kind of animation
macvim
OS X 10.8.3

was trying with default settings and with these

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

Any chance to get this working in Emacs/Evil?

First, thanks for your work! I missed this so bad in Emacs/Evil.

I looked into how I could write this script in the same way in Lisp, which is much easier than Vimscript. But I have no experience with Lisp.

So my question is if you are willing to write the same script for Emacs? I would pay you if you want?

Could it be possible to give float values as input?

Right now we can use as input the "velocity", but I would like it to be between 1 and 2. Would it be possible to update the plugin so it can use a float value?

noremap :call smooth_scroll#up(&scroll, 0, 1)
noremap :call smooth_scroll#down(&scroll, 0, 1)

This would be the ideal case for finer control:

noremap :call smooth_scroll#up(&scroll, 0, 1.3)
noremap :call smooth_scroll#down(&scroll, 0, 1.3)

Any guidance on how this could be achieved would be much appreciated, I could latter create the PR

VIm crashes when I hold CTRL-D

Hi,

I have configured your plugin and it is causing vim to crash when I just hold CTRL-D for a period of time. Do you know about this issue?

Feature: smooth jumps between marks,search matches, etc..

This is a feature request. I love this plugin because makes vim environment feel less harsh. It works great for scrolling, but what about jumping around when using # over a word, or jumping to next/previous searches, marks etc...

Smooth scrolling breaks visual mode

Normally when we select a line (via V) than we can increase the selection via ctrl+d and ctrl+u. However this plugin breaks this behaviour. We are no more able to select lines in visual mode. Because vim-smooth-scrool disables visual mode as soon as we use on of the calls.

zz with smooth scroll

A possible improvement would be to apply the same smooth scrolling to the zz, zt, zb. How could this be implemented?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.