New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add support for scrolloff #1427
Comments
This seems like more of a VSCode thing than for us. Relevant: microsoft/vscode#12048 |
Could this be implemented in VSCodeVim while waiting for native support in VSCode? |
@Tobbe Seems unlikely to me. VSCode exposes almost nothing about the view window to us. The only way we can even interact with the viewport (for commands like |
There is a scrolloff extension, but at least locally it breaks some vim functionality ( |
The feature is supported in Visual Studio with VSVIM. Why does it not work on VSCode? |
This argument comes up more often than it should. Visual Studio/VSCode are both editors maintained by Microsoft and VSVim/VSCodeVim are both VIM emulator plugins, but that is where the commonality ends. Visual Studio+VSVim and VSCode+VSCodeVim are different projects with different code bases supported by different teams/communities. Contributions are more than welcome to add this support to vscodevim; however, as argued in microsoft/vscode#12048, it'd be great to push these requirements down to vscode so that non-vim users would benefit, so please upvote that issue. Have you tried using https://github.com/TickleForce/vscode-scrolloff? Or maybe in vscodevim, we can integrate with the vscode-scrolloff extension. |
There are always other extensions that can help get this functionality. I use VSCodeVim for a lot of things, but when I needed scrolloff, I found another extension. |
For the record, I've tried scrollof, but it did not have any effect on |
After taking another look, I noticed scrollof offsets after moving up or down. Here is how I hacked it to work as intended. "vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["z", "t"],
"after": ["z", "t", "j", "k"]
},
{
"before": ["z", "b"],
"after": ["z", "b", "j", "k"]
}
], Obviously this is very messy and could cause all sorts of other issues. I don't know where to fix this? |
This is addressed, as best as possible, in #3940. If you're waiting on this feature, it'd be very helpful if you checked out that branch and did some manual testing. Thanks! |
It's already implemented in VS Code and the setting for this feature is |
@rebornix Thanks, I chose the wrong time to tackle this one 🙂 |
Please add support for the vim setting
scrolloff
Thanks! :)
The text was updated successfully, but these errors were encountered: