{"id":13479784,"url":"https://github.com/ojroques/vim-scrollstatus","last_synced_at":"2025-03-06T02:43:32.693Z","repository":{"id":90194180,"uuid":"247260732","full_name":"ojroques/vim-scrollstatus","owner":"ojroques","description":"A Vim plugin to display a scrollbar in the statusline","archived":false,"fork":false,"pushed_at":"2023-12-27T09:46:14.000Z","size":527,"stargazers_count":78,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T17:26:51.667Z","etag":null,"topics":["scrollbar","vim-plugin","vim-scrollbar"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ojroques.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,"roadmap":null,"authors":null}},"created_at":"2020-03-14T11:07:00.000Z","updated_at":"2025-02-03T18:43:34.000Z","dependencies_parsed_at":"2024-01-16T06:28:53.864Z","dependency_job_id":"d0ba32a7-6863-404a-bf19-73c4bcf0db94","html_url":"https://github.com/ojroques/vim-scrollstatus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fvim-scrollstatus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fvim-scrollstatus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fvim-scrollstatus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fvim-scrollstatus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ojroques","download_url":"https://codeload.github.com/ojroques/vim-scrollstatus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242138789,"owners_count":20078007,"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":["scrollbar","vim-plugin","vim-scrollbar"],"created_at":"2024-07-31T16:02:22.942Z","updated_at":"2025-03-06T02:43:32.648Z","avatar_url":"https://github.com/ojroques.png","language":"Vim Script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# vim-scrollstatus\n\nA scrollbar for Vim statusline. For Neovim, check out\n[nvim-scrollbar](https://github.com/ojroques/nvim-scrollbar).\n\n![demo](https://user-images.githubusercontent.com/23409060/188604635-0971e70b-f58e-4bc9-91ce-7ac0f0b496cb.gif)\n\n## Installation\nWith [vim-plug](https://github.com/junegunn/vim-plug):\n```vim\ncall plug#begin()\nPlug 'ojroques/vim-scrollstatus'\ncall plug#end()\n```\n\n## Usage\nWith [vim-airline](https://github.com/vim-airline/vim-airline):\n```vim\nlet g:airline_section_x = '%{ScrollStatus()}'\n```\n\nWith [lightline.vim](https://github.com/itchyny/lightline.vim):\n```vim\nlet g:lightline = {\n  \\ 'active': {\n  \\   'right': [['lineinfo'], ['percent'], ['fileformat', 'fileencoding', 'filetype', 'charvaluehex']]\n  \\ },\n  \\ 'component_function': {'percent': 'ScrollStatus'},\n  \\ }\n```\n\n## Configuration\nBy default the scrollbar is 20 characters long. You can set another value with:\n```vim\nlet g:scrollstatus_size = 12\n```\n\nBy default the symbols are set to `░` for the track and `█` for the bar. To change them:\n```vim\nlet g:scrollstatus_symbol_track = '-'\nlet g:scrollstatus_symbol_bar = '|'\n```\n\n## Example\nTo reproduce the statusline from the screenshot:\n```vim\ncall plug#begin()\nPlug 'vim-airline/vim-airline'\nPlug 'ojroques/vim-scrollstatus'\ncall plug#end()\n\nlet g:airline_section_x = '%{ScrollStatus()} '\nlet g:airline_section_y = airline#section#create_right(['filetype'])\nlet g:airline_section_z = airline#section#create([\n            \\ '%#__accent_bold#%3l%#__restore__#/%L', ' ',\n            \\ '%#__accent_bold#%3v%#__restore__#/%3{virtcol(\"$\") - 1}',\n            \\ ])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojroques%2Fvim-scrollstatus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fojroques%2Fvim-scrollstatus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojroques%2Fvim-scrollstatus/lists"}