{"id":19607573,"url":"https://github.com/andreax79/vim-on-write","last_synced_at":"2026-03-02T02:44:48.382Z","repository":{"id":34424252,"uuid":"38357147","full_name":"andreax79/vim-on-write","owner":"andreax79","description":"Easily register commands executed when the current buffer or a given files matching a glob are saved","archived":false,"fork":false,"pushed_at":"2015-07-03T13:09:23.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T09:28:44.170Z","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/andreax79.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-07-01T07:43:39.000Z","updated_at":"2015-07-05T10:32:56.000Z","dependencies_parsed_at":"2022-08-17T20:40:31.021Z","dependency_job_id":null,"html_url":"https://github.com/andreax79/vim-on-write","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/andreax79%2Fvim-on-write","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreax79%2Fvim-on-write/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreax79%2Fvim-on-write/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreax79%2Fvim-on-write/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreax79","download_url":"https://codeload.github.com/andreax79/vim-on-write/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240895691,"owners_count":19875022,"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-11T10:11:23.590Z","updated_at":"2026-03-02T02:44:43.348Z","avatar_url":"https://github.com/andreax79.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-on-write\nEasily register commands executed when the current buffer or a given files matching a glob are saved\n\n## Installation\nThis plugin follows the standard runtime path structure and it can be installed with a variety of plugin managers:\n\n* Vundle\n  * Add this line to your ~/.vimrc (or $HOME\\vimfiles\\.vimrc on Windows) configuration file:\n  * `Bundle 'andreax79/vim-on-write'`\n\n* Pathogen\n  * Go in your Vim bundle directory ~/.vim/bundle ($HOME\\vimfiles\\bundle on Windows) and execute the following command:\n  * `git clone https://github.com/andreax79/vim-on-write`\n\n* Manual\n  * Copy all of the files into your `~/.vim` ($HOME\\vimfiles on Windows) directory\n\n## Usage\n\n**:OnWrite \u003c command \u003e**\n\n    Register a command executed when the current buffer is saved.\n    Only one command can be registered for a buffer.\n\n*Example:*\n\n    The following command copy the current file on the server when the buffer\n    is written.\n    :OnWrite scp % server:/tmp/\n\n**:OnWriteGlob \u003c glob \u003e \u003c command \u003e**\n\n    Register a command executed when a file matching the glob is saved.\n    Only one command can be registered for a glob, but a single file can\n    match multiple glob.\n\n*Example:*\n\n    The following command copy the *.py files when are saved.\n    :OnWriteGlob *.py scp % server:/tmp/\n\n**:CancelOnWrite [\u003c glob \u003e]**\n\n    Remove the command triggered for the current buffer or a glob.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreax79%2Fvim-on-write","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreax79%2Fvim-on-write","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreax79%2Fvim-on-write/lists"}