{"id":15712023,"url":"https://github.com/xvezda/vim-readonly","last_synced_at":"2025-05-12T21:49:28.618Z","repository":{"id":86705075,"uuid":"249196347","full_name":"Xvezda/vim-readonly","owner":"Xvezda","description":":eyes: Automatically set readonly option on specific files","archived":false,"fork":false,"pushed_at":"2021-01-22T00:53:35.000Z","size":14,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T03:51:21.049Z","etag":null,"topics":["neovim","nvim","readonly","vim","vim-plugins","vim-scripts"],"latest_commit_sha":null,"homepage":"https://www.vim.org/scripts/script.php?script_id=5896","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/Xvezda.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-22T14:06:16.000Z","updated_at":"2022-08-25T08:34:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"364639a8-e70b-43c2-8ff6-36c99eb536d2","html_url":"https://github.com/Xvezda/vim-readonly","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fvim-readonly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fvim-readonly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fvim-readonly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fvim-readonly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xvezda","download_url":"https://codeload.github.com/Xvezda/vim-readonly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253830363,"owners_count":21970994,"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":["neovim","nvim","readonly","vim","vim-plugins","vim-scripts"],"created_at":"2024-10-03T21:14:35.498Z","updated_at":"2025-05-12T21:49:28.596Z","avatar_url":"https://github.com/Xvezda.png","language":"Vim script","readme":"# readonly.vim\n[![Script manager: vishop](https://img.shields.io/badge/script%20manager-vishop-blueviolet)](https://github.com/Xvezda/vishop)\n\nAutomatically set readonly option on specific files.\n\nThis plugin is useful when if you are person like me,\nwho likes to look around internal or package manager managed (i.e. pip, npm, etc.)\nsource codes with vim.\n\nIt protects original source code from modifying accidentally by user.\n\n\n## Installation\n\nUsing vim-plug:\n```vim\nPlug 'Xvezda/vim-readonly'\n```\n\nor\n\n```sh\nmake install\n```\n\n## Usage\n\n`g:readonly_automatic` is enabled by default.\n\nUse `:Readonly` to manually enable readonly option, and `:Readonly!` to disable.\n\n\n## Global options\n\n| Flag                          | Description                                                               | Default                                                       |\n| ----------------------        | --------------------------------------------------                        | -------                                                       |\n| `g:readonly_automatic`        | Automatically set readonly when patterns are match                        | `1`                                                           |\n| `g:readonly_paths`            | Set patterns of path to set readonly option                               | `['/usr/bin/lib/', '/usr/local/lib/', '/usr/local/include/']` |\n| `g:readonly_nodejs`           | Add NodeJs package path to readonly paths                                 | `1`                                                           |\n| `g:readonly_python`           | Add python package path to readonly paths                                 | `1`                                                           |\n| `g:readonly_check_virtualenv` | Add python virtualenv path to readonly paths when virtualenv is activated | `1`                                                           |\n\n\n## Homepage\n\nhttps://github.com/Xvezda/vim-readonly\n\n\n## Copyright\n\nCopyright (C) 2020 Xvezda\n\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvezda%2Fvim-readonly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxvezda%2Fvim-readonly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvezda%2Fvim-readonly/lists"}