{"id":20981461,"url":"https://github.com/nobe4/relative-n.vim","last_synced_at":"2026-03-16T17:34:13.157Z","repository":{"id":36320251,"uuid":"40624916","full_name":"nobe4/relative-n.vim","owner":"nobe4","description":"Display the nth relative number in the signs bar","archived":false,"fork":false,"pushed_at":"2015-08-12T21:30:07.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T06:41:49.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nobe4.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}},"created_at":"2015-08-12T21:21:04.000Z","updated_at":"2015-08-12T21:22:20.000Z","dependencies_parsed_at":"2022-09-05T06:50:19.054Z","dependency_job_id":null,"html_url":"https://github.com/nobe4/relative-n.vim","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/nobe4%2Frelative-n.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobe4%2Frelative-n.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobe4%2Frelative-n.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobe4%2Frelative-n.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nobe4","download_url":"https://codeload.github.com/nobe4/relative-n.vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243383316,"owners_count":20282115,"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":[],"created_at":"2024-11-19T05:38:01.673Z","updated_at":"2025-12-25T18:04:03.642Z","avatar_url":"https://github.com/nobe4.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# relative-n.vim \nDisplay the nth relative number in the signs bar\n\n# What ? \nThis script display the 10nth lines before and after the current cursor row\nposition. It comes from a [this question](http://vi.stackexchange.com/questions/4288/show-only-every-n-relative-line-number).\n\nThe core concept behind it comes directly from the\n[vim-signature](https://github.com/kshenoy/vim-signature) plugin. Here is\na step-by-step walkthrough : \n\n1. Remove all previous signs from the sign bar\n2. Build a list of the lines you want to show in the sign bar\n3. For each line, create a new sign with a unique id (based on current buffer\n   and line number)\n4. For each line, display the sign (the text of the sign will be the current\n   line) \n\n# Warnings \nThis script works as a proof of concept, but I wouldn't use is. You will see\nif you try it that it gets all flickering when you move quickly. I think the\nreason behind it is that the sign bar is not intended to quickly change over\ntime.\n\n# Contribution\nIf you want to see this code evolve and maybe become a plugin, you can reach\nvia an issue. Thanks !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobe4%2Frelative-n.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnobe4%2Frelative-n.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobe4%2Frelative-n.vim/lists"}