{"id":16653808,"url":"https://github.com/ypcrts/securemodelines","last_synced_at":"2025-04-09T18:11:08.894Z","repository":{"id":25808776,"uuid":"106613250","full_name":"ypcrts/securemodelines","owner":"ypcrts","description":"Secure alternative to Vim modelines. Maintained, active fork. ","archived":false,"fork":false,"pushed_at":"2022-09-05T08:41:07.000Z","size":23,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T20:11:35.659Z","etag":null,"topics":["modeline","security","vim","vim-modelines","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ypcrts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-11T21:50:43.000Z","updated_at":"2024-08-16T17:04:10.000Z","dependencies_parsed_at":"2022-08-07T11:16:01.582Z","dependency_job_id":null,"html_url":"https://github.com/ypcrts/securemodelines","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/ypcrts%2Fsecuremodelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ypcrts%2Fsecuremodelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ypcrts%2Fsecuremodelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ypcrts%2Fsecuremodelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ypcrts","download_url":"https://codeload.github.com/ypcrts/securemodelines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085277,"owners_count":21045138,"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":["modeline","security","vim","vim-modelines","vim-plugin"],"created_at":"2024-10-12T09:47:45.024Z","updated_at":"2025-04-09T18:11:08.878Z","avatar_url":"https://github.com/ypcrts.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- vi: ft=markdown tw=80 ts=2 sw=2 sts=2 fdm=marker fmr={{{,}}} et: --\u003e\n# securemodelines\nA secure alternative to Vim modelines\n\nThis is a maintained fork of the [original vimscript](https://github.com/ciaranm/securemodelines).\n\n## Description\n\nVim's internal modeline support allows all sorts of annoying and potentially\ninsecure options to be set. This script implements a much more heavily\nrestricted modeline parser that permits only user-specified options to be set.\n\n## Installation\n\nNo configuration required.\nUsing [vim-plug](https://github.com/junegunn/vim-plug)\n```vim\nPlug 'ypcrts/securemodelines'\n```\n\n\n##  Internals\nThe `g:secure_modelines_allowed_items` array contains allowed options.  See\n`:help securemodelines_options` for default values.\n\nThe `g:secure_modelines_verbose` variable, if set to something true, will make\nthe script warn when a modeline attempts to set any other option.\n\nThe `g:secure_modelines_modelines` variable overrides the number of lines to\ncheck. By default it is 5.\n\nIf `g:secure_modelines_leave_modeline` is defined, the script will not clobber\n\u0026modeline. Otherwise \u0026modeline will be unset.\n\nIf `b:disable_secure_modelines` is defined, securemodelines will not run for\nthe current buffer. The intent being to turn off securemodelines in an\nftplugin.\n\n\n## Contributors\n\nSee the [contributors\ngraph](https://github.com/ypcrts/securemodelines/graphs/contributors).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fypcrts%2Fsecuremodelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fypcrts%2Fsecuremodelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fypcrts%2Fsecuremodelines/lists"}