{"id":13898664,"url":"https://github.com/tjdevries/overlength.vim","last_synced_at":"2025-03-06T07:55:08.915Z","repository":{"id":51690862,"uuid":"95715241","full_name":"tjdevries/overlength.vim","owner":"tjdevries","description":"Highlight when lines go over the length that you want them.","archived":false,"fork":false,"pushed_at":"2020-07-10T19:13:00.000Z","size":13,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T19:25:06.718Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","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/tjdevries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"tjdevries"}},"created_at":"2017-06-28T22:00:10.000Z","updated_at":"2025-01-14T12:22:08.000Z","dependencies_parsed_at":"2022-08-23T01:10:13.875Z","dependency_job_id":null,"html_url":"https://github.com/tjdevries/overlength.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/tjdevries%2Foverlength.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Foverlength.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Foverlength.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Foverlength.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjdevries","download_url":"https://codeload.github.com/tjdevries/overlength.vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242171563,"owners_count":20083554,"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-08-06T18:04:23.838Z","updated_at":"2025-03-06T07:55:08.894Z","avatar_url":"https://github.com/tjdevries.png","language":"Vim script","funding_links":["https://github.com/sponsors/tjdevries"],"categories":["Vim Script"],"sub_categories":[],"readme":"## overlength.vim\n\nHighlight when lines go over the length that you want them.\n\n### Usage\n\nThis plugin is on by default when you install it :smile:\n\nTo toggle or turn it off, you can do the following:\n\n`call overlength#toggle()`:\n- (Function): Turn on and off overlength highlighting\n- Example: `call overlength#toggle()`\n- Alternatives: `call overlength#disable()` or `call overlength#enable()`\n\n### Configuration\n\nExample configuration:\n\n```vim\nlet overlength#default_overlength = 120\n\n\" Disable highlighting in markdown.\ncall overlength#set_overlength('markdown', 0)\n\n\" To disable highlighting in multiple fts at once\ncall overlength#disable_filetypes(['markdown', 'term'])\n\n\" Highlight only at 120 characters in vim, even though textwidth = 78\ncall overlength#set_overlength('vim', 120)\n```\n\n`overlength#default_to_textwidth`:\n- (Setting): Default to using the `\u0026textwidth` option as the column to start drawing the overlength highlighting\n  - Options:\n    - `0`: Don't use `\u0026textwidth` at all. Always use `overlength#default_overlength`.\n    - `1`: Use `\u0026textwidth`, unless it's 0, then use `overlength#default_overlength`.\n    - `2`: Always use `\u0026textwidth`. There will be no highlighting where `\u0026textwidth == 0`, unless added explicitly\n- Default: `1`\n- Example: `let overlength#default_to_textwidth = 0`\n\n`call overlength#set_overlength(filetype, length)`:\n- (Function): Set a specific overlength value for a filetype\n  - If set to 0, then overlength will not highlight for that buffer\n- Example: `call overlength#set_overlength('python', 120)`\n\n`overlength#default_overlength`:\n- (Setting): Decide the default length when there is no filetype specific request\n  - Depends on `overlength#default_to_textwidth` to be on an applicable setting\n- Default: `80`\n- Example: `let overlength#default_overlength = 72`\n\n`overlength#default_grace_legnth`:\n- (Setting): Decide how many spaces past your `overlength` you'd like to start highlighting\n- Default: `1`\n- Example: `let overlength#default_grace_legnth = 5`\n\n`call overlength#set_highlight(cterm, guibg)`:\n- (Function): Change the highlighting background by specifying a `cterm` and `guibg`\n- Example: `call overlength#set_highlight('darkgrey', '#8b0000')`\n\n`overlength#highlight_to_end_of_line`:\n- (Setting): Highlight only the column or until the end of the line\n- Default: `v:true`\n- Example: `let overlength#highlight_to_end_of_line = v:false`\n\n### Note on Multi Width Bug\n\nI cannot figure out how to solve the problem for the case where `overlength#highlight_to_end_of_line` is set to `v:false`\n(i.e., you only want highlighting on the column only, not the whole line) due to the vim limitation of:\n\n```\n\tNote that some virtual column positions will never match, because they\n\tare halfway through a tab or other character that occupies more than\n\tone screen character.\n```\n\nSo, sometimes the highlighting will miss. If this bothers you, please leave an issue and maybe I can fix it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjdevries%2Foverlength.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjdevries%2Foverlength.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjdevries%2Foverlength.vim/lists"}