{"id":13469744,"url":"https://github.com/tpope/vim-abolish","last_synced_at":"2025-05-14T14:08:47.625Z","repository":{"id":419579,"uuid":"39370","full_name":"tpope/vim-abolish","owner":"tpope","description":"abolish.vim: Work with several variants of a word at once","archived":false,"fork":false,"pushed_at":"2024-08-07T21:16:02.000Z","size":65,"stargazers_count":2848,"open_issues_count":38,"forks_count":87,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-05-13T17:59:48.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.vim.org/scripts/script.php?script_id=1545","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpope.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":"CONTRIBUTING.markdown","funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"tpope","custom":["https://www.paypal.me/vimpope"]}},"created_at":"2008-08-02T04:04:00.000Z","updated_at":"2025-05-06T02:52:02.000Z","dependencies_parsed_at":"2023-07-05T14:52:12.731Z","dependency_job_id":"6409f6dc-52d0-4a17-9d7f-c639632e5e82","html_url":"https://github.com/tpope/vim-abolish","commit_stats":{"total_commits":58,"total_committers":21,"mean_commits":2.761904761904762,"dds":0.4137931034482759,"last_synced_commit":"880a562ff9176773897930b5a26a496f68e5a985"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-abolish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-abolish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-abolish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-abolish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/vim-abolish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254160465,"owners_count":22024569,"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-07-31T15:01:54.333Z","updated_at":"2025-05-14T14:08:47.607Z","avatar_url":"https://github.com/tpope.png","language":"Vim Script","funding_links":["https://github.com/sponsors/tpope","https://www.paypal.me/vimpope"],"categories":["Vim Script","Vim script","plugins for writing","Tools"],"sub_categories":["Editing"],"readme":"# abolish.vim\n\nI sat on this plugin for 3 years before releasing it, primarily\nbecause it's so gosh darn hard to explain.  It's three superficially\nunrelated plugins in one that share a common theme: working with\nvariants of a word.\n\n## Abbreviation\n\nI know how to spell \"separate\".  I know how to spell \"desperate\".  My\nfingers, however, have trouble distinguishing between the two, and I\ninvariably have a 50 percent chance of typing \"seperate\" or \"desparate\"\neach time one of these comes up.  At first, I tried abbreviations:\n\n    :iabbrev  seperate  separate\n    :iabbrev desparate desperate\n\nBut this falls short at the beginning of a sentence.\n\n    :iabbrev  Seperate  Separate\n    :iabbrev Desparate Desperate\n\nTo be really thorough, we need uppercase too!\n\n    :iabbrev  SEPERATE  SEPARATE\n    :iabbrev DESPARATE DESPERATE\n\nOh, but consider the noun form, and the adverb form!\n\n    :iabbrev  seperation  separation\n    :iabbrev desparation desperation\n    :iabbrev  seperately  separately\n    :iabbrev desparately desperately\n    :iabbrev  Seperation  separation\n    :iabbrev Desparation Desperation\n    :iabbrev  Seperately  Separately\n    :iabbrev Desparately Desperately\n    :iabbrev  SEPERATION  SEPARATION\n    :iabbrev DESPARATION DESPERATION\n    :iabbrev  SEPERATELY  SEPARATELY\n    :iabbrev DESPARATELY DESPERATELY\n\nWait, there's also \"separates\", \"separated\", \"separating\",\n\"separations\", \"separator\"...\n\nAbolish.vim provides a simpler way.  The following one command produces\n48 abbreviations including all of the above.\n\n    :Abolish {despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or}  {despe,sepa}rat{}\n\nMy current configuration has 25 Abolish commands that create hundreds of\ncorrections my fingers refuse to learn.\n\n## Substitution\n\nOne time I had an application with a domain model called\n\"facility\" that needed to be renamed to \"building\". So, a simple\nsearch and replace, right?\n\n    :%s/facility/building/g\n\nOh, but the case variants!\n\n    :%s/Facility/Building/g\n    :%s/FACILITY/BUILDING/g\n\nWait, the plural is more than \"s\" so we need to get that too!\n\n    :%s/facilities/buildings/g\n    :%s/Facilities/Buildings/g\n    :%s/FACILITIES/BUILDINGS/g\n\nAbolish.vim has your back.  One command to do all six, and you can\nrepeat it with `\u0026` too!\n\n    :%Subvert/facilit{y,ies}/building{,s}/g\n\nFrom a conceptual level, one way to think about how this substitution\nworks is to imagine that in the braces you are declaring the\nrequirements for turning that word from singular to plural.  In\nthe facility example, the same base letters in both the singular\nand plural form of the word are `facilit` To turn \"facility\" to a\nplural word you must change the `y` to `ies` so you specify\n`{y,ies}` in the braces.\n\nTo convert the word \"building\" from singular to plural, again\nlook at the common letters between the singular and plural forms:\n`building`.  In this case you do not need to remove any letter\nfrom building to turn it into plural form and you need to\nadd an `s` so the braces should be `{,s}`.\n\nA few more examples:\n\nAddress to Reference\n\n    :Subvert/address{,es}/reference{,s}/g\n\nBlog to Post (you can just do this with a regular :s also)\n\n    :Subvert/blog{,s}/post{,s}/g\n\nChild to Adult\n\n    :Subvert/child{,ren}/adult{,s}/g\n\nBe amazed as it correctly turns the word children into the word adults!\n\nDie to Spinner\n\n    :Subvert/di{e,ce}/spinner{,s}/g\n\nYou can abbreviate it as `:S`, and it accepts the full range of flags\nincluding things like `c` (confirm).\n\nThere's also a variant for searching and a variant for grepping.\n\n## Coercion\n\nWant to turn `fooBar` into `foo_bar`?  Press `crs` (coerce to\nsnake\\_case).  MixedCase (`crm`), camelCase (`crc`), UPPER\\_CASE\n(`cru`), dash-case (`cr-`), and dot.case (`cr.`) are all just 3\nkeystrokes away.\n\n## Installation\n\nInstall using your favorite package manager, or use Vim's built-in package\nsupport:\n\n    mkdir -p ~/.vim/pack/tpope/start\n    cd ~/.vim/pack/tpope/start\n    git clone https://tpope.io/vim/abolish.git\n    vim -u NONE -c \"helptags abolish/doc\" -c q\n\n## Self-Promotion\n\nLike abolish.vim? Follow the repository on\n[GitHub](https://github.com/tpope/vim-abolish) and vote for it on\n[vim.org](http://www.vim.org/scripts/script.php?script_id=1545).  And if\nyou're feeling especially charitable, follow [tpope](http://tpo.pe/) on\n[Twitter](http://twitter.com/tpope) and\n[GitHub](https://github.com/tpope).\n\n## License\n\nCopyright (c) Tim Pope.  Distributed under the same terms as Vim itself.\nSee `:help license`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-abolish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Fvim-abolish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-abolish/lists"}