{"id":18940055,"url":"https://github.com/gw31415/scrolluptolastline.vim","last_synced_at":"2025-04-12T14:08:11.067Z","repository":{"id":209305105,"uuid":"723699471","full_name":"gw31415/scrollUptoLastLine.vim","owner":"gw31415","description":"scrollBeyondLastLine=false in Vim","archived":false,"fork":false,"pushed_at":"2023-11-27T11:25:35.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T06:02:17.435Z","etag":null,"topics":["vim","vscode"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gw31415.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-26T13:58:51.000Z","updated_at":"2024-12-21T20:13:19.000Z","dependencies_parsed_at":"2023-11-26T15:37:57.192Z","dependency_job_id":null,"html_url":"https://github.com/gw31415/scrollUptoLastLine.vim","commit_stats":null,"previous_names":["gw31415/scrolluptolastline.vim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2FscrollUptoLastLine.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2FscrollUptoLastLine.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2FscrollUptoLastLine.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2FscrollUptoLastLine.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gw31415","download_url":"https://codeload.github.com/gw31415/scrollUptoLastLine.vim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578867,"owners_count":21127713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vim","vscode"],"created_at":"2024-11-08T12:20:02.949Z","updated_at":"2025-04-12T14:08:11.033Z","avatar_url":"https://github.com/gw31415.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scrollUptoLastLine.vim\nA Vim plugin to stop mouse scrolling at the last line, similar to setting `scrollBeyondLastLine` to `false` in VSCode.\n\n![output](https://github.com/gw31415/scrollUptoLastLine.vim/assets/24710985/5522ead9-9bbb-4542-b206-ad8806af562f)\n\n## DESCRIPTION\n\nThis plugin modifies the behavior of mouse scrolling in Vim. When installed and enabled, it prevents the mouse from scrolling beyond the last line of the document.\n\n`scrollUptoLastLine.vim` is designed for users who prefer the editor's viewport to stop at the last line of the file, avoiding extra empty space below the last line during scrolling. This feature is akin to the `scrollBeyondLastLine` setting in VSCode when set to `false`.\n\n## OPTIONS\n\n`g:scroll_upto_lastline_padding` - This global variable sets the number of lines to show after the last line of the file when scrolling reaches the end. For instance, setting this variable to 5 will allow the user to see five lines past the last line of the file while scrolling. The default value is `\u0026scrolloff`.\n\n## INSTALLATION\n\nTo install `scrollUptoLastLine.vim`, use your preferred Vim plugin manager.\n\n- plug.vim\n```vim\nPlug 'gw31415/scrollUptoLastLine.vim'\n```\n\n- dein.vim\n```vim\ncall dein#add('gw31415/scrollUptoLastLine.vim')\n```\n\n## USAGE\n\nAfter installing, the plugin works automatically. You can adjust the padding by setting `g:scroll_upto_lastline_padding` in your `.vimrc` file, like so:\n\n```vim\nlet g:scroll_upto_lastline_padding = 3\n```\n\n## Q/A\n\n### Issue: Strange Behavior When Push \u003cSHIFT\u003e After Scrolling\n\n**Q**: When I hold Shift after scroll, the behavior seems erratic. What's happening?\n\n**A**: This issue is likely due to `\u003cS-MouseUp\u003e` being unintentionally active. To resolve this, remap `\u003cS-MouseUp\u003e` to `\u003cNop\u003e` (No operation). You can do this by adding the following line to your `.vimrc`:\n\n```vim\nnoremap \u003cS-MouseUp\u003e \u003cNop\u003e\ninoremap \u003cS-MouseUp\u003e \u003cNop\u003e\n```\n\nThis remapping prevents any unintended actions when shift-scrolling.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgw31415%2Fscrolluptolastline.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgw31415%2Fscrolluptolastline.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgw31415%2Fscrolluptolastline.vim/lists"}