{"id":13706131,"url":"https://github.com/tommcdo/vim-exchange","last_synced_at":"2025-05-05T19:34:33.986Z","repository":{"id":47401923,"uuid":"14957387","full_name":"tommcdo/vim-exchange","owner":"tommcdo","description":"Easy text exchange operator for Vim","archived":false,"fork":false,"pushed_at":"2024-01-21T00:28:23.000Z","size":70,"stargazers_count":756,"open_issues_count":5,"forks_count":23,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-13T14:39:28.200Z","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/tommcdo.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":"2013-12-05T15:29:16.000Z","updated_at":"2024-10-25T15:06:27.000Z","dependencies_parsed_at":"2024-05-12T22:36:38.493Z","dependency_job_id":"f0d139bc-b5f1-48fd-977f-3d0bfdb61ae4","html_url":"https://github.com/tommcdo/vim-exchange","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/tommcdo%2Fvim-exchange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tommcdo%2Fvim-exchange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tommcdo%2Fvim-exchange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tommcdo%2Fvim-exchange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tommcdo","download_url":"https://codeload.github.com/tommcdo/vim-exchange/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252563160,"owners_count":21768413,"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-02T22:00:52.451Z","updated_at":"2025-05-05T19:34:33.692Z","avatar_url":"https://github.com/tommcdo.png","language":"Vim Script","funding_links":[],"categories":["Vim Script","plugins for writing"],"sub_categories":[],"readme":"exchange.vim\n============\n\nEasy text exchange operator for Vim.\n\nMappings\n--------\n\n`cx`\n\nOn the first use, define the first {motion} to exchange. On the second use,\ndefine the second {motion} and perform the exchange.\n\n`cxx`\n\nLike `cx`, but use the current line.\n\n`X`\n\nLike `cx`, but for Visual mode.\n\n`cxc`\n\nClear any {motion} pending for exchange.\n\n### Some notes\n\n* If you're using the same motion again (e.g. exchanging two words using\n  `cxiw`), you can use `.` the second time.\n* If one region is fully contained within the other, it will replace the\n  containing region.\n\nExample\n-------\n\nTo exchange two words, place your cursor on the first word and type `cxiw`.\nThen move to the second word and type `cxiw` again. Note: the {motion} used in\nthe first and second use of `cx` don't have to be the same.\n\nMore\n----\n\nCheck out these other resources for more information:\n\n* [Swapping two regions of text with exchange.vim][e65]\n\n[e65]: http://vimcasts.org/episodes/swapping-two-regions-of-text-with-exchange-vim\n\nOther text editors\n------------------\n\nExchange.vim has been ported by third parties to work with Vim emulators in\nother text editors.\n\n* **Emacs**: [evil-exchange][emacs] by [Dewdrops][dd]\n* **Atom**: [vim-mode-plus-exchange][atom] by [Dillon Kearns][dk]\n* **Zsh**: [zsh-viexchange][zsh] by [Oliver Kiddle][ok]\n* **IntelliJ**: [IdeaVim exchange extension][ij] by [Alexey Gerasimov][ft]\n\n[emacs]: https://melpa.org/#/evil-exchange\n[atom]: https://atom.io/packages/vim-mode-plus-exchange\n[zsh]: https://github.com/okapia/zsh-viexchange\n[ij]: https://github.com/JetBrains/ideavim/wiki/Emulated-plugins#exchange\n[dd]: https://github.com/Dewdrops\n[dk]: https://github.com/dillonkearns\n[ok]: https://github.com/okapia\n[ft]: https://github.com/fan-tom\n\nTroubleshooting\n---------------\n\nMore details and troubleshooting can be found in the [Wiki][wiki].\n\n[wiki]: https://github.com/tommcdo/vim-exchange/wiki\n\nInstallation\n------------\n\nIf you don't have a preferred installation method, I recommend\ninstalling [pathogen.vim](https://github.com/tpope/vim-pathogen), and\nthen simply copy and paste:\n\n    cd ~/.vim/bundle\n    git clone git://github.com/tommcdo/vim-exchange.git\n\nOnce help tags have been generated, you can view the manual with\n`:help exchange`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommcdo%2Fvim-exchange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftommcdo%2Fvim-exchange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommcdo%2Fvim-exchange/lists"}