terryma / vim-smooth-scroll Goto Github PK
View Code? Open in Web Editor NEWMake scrolling in Vim more pleasant
Make scrolling in Vim more pleasant
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?
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.
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.
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.
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 ?
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.
It keeps the editor busy trying to scroll up/down when reaching top/bottom.
I'll send a patch to fix this and wait for review.
I tested the effect by trying up(3, 0, 0)
, and Linux crashed.
Big lag when scrolling up in MacVim for both and .
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>
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?
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
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?
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...
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
.
A possible improvement would be to apply the same smooth scrolling to the zz, zt, zb. How could this be implemented?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.