2

How to disable horizontal scrolling I've written a solution that disables horizontal scrolling, (by riffing off of @ЯрославРахматуллин's suggestion), but I don't think you're going to like it: augroup NoScrollPlease autocmd! autocmd CursorMoved * norm!99zH augroup END This prevents scrolling to the right by the incredibly precise method of just ...


1

Not an answer to your question. But thought I'd mention that this exists: https://github.com/terryma/vim-smooth-scroll


1

EDIT The problem was actually a bug in neovim fixed by the commit 47b7b471fa which is now merged in master. So after asking the Neovim issue tracker it turns out this is the current "expected" behavior of the code: In terminal.c the function adjust_topline() iterates over FOR_ALL_WINDOWS_IN_TAB, changing that to iterate over FOR_ALL_TAB_WINDOWS fixes my ...


1

I guess you want the horizontal scrollbar on nowrap. You can handle this with a autocmd, like: autocmd OptionSet wrap if &wrap|set guioptions-=b|else|set guioptions+=b|endif If you change the option wrap during runtime, this will automatically switch on/off the horizontal scrollbar. The autocommand is not triggered on startup (sourcing vimrc), see :...


Only top voted, non community-wiki answers of a minimum length are eligible