{"id":19238246,"url":"https://github.com/olical/vim-expand","last_synced_at":"2026-06-27T21:30:17.181Z","repository":{"id":24440465,"uuid":"27842396","full_name":"Olical/vim-expand","owner":"Olical","description":"Expand things like {foo,bar}, {1..10} and $HOME inline with a single command","archived":false,"fork":false,"pushed_at":"2016-03-30T15:30:29.000Z","size":4,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T02:10:29.758Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Olical.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-10T22:15:20.000Z","updated_at":"2021-12-22T12:33:04.000Z","dependencies_parsed_at":"2022-07-16T23:06:43.577Z","dependency_job_id":null,"html_url":"https://github.com/Olical/vim-expand","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/Olical%2Fvim-expand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fvim-expand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fvim-expand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fvim-expand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olical","download_url":"https://codeload.github.com/Olical/vim-expand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240324061,"owners_count":19783453,"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-09T16:30:00.104Z","updated_at":"2026-06-27T21:30:17.134Z","avatar_url":"https://github.com/Olical.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-expand\n\nAllows you to filter your current line or visual selection through the [expand][] function in place via the `:Expand` command. This allows you to write things like the following.\n\n```javascript\nfunction {add,remove}User() {\n    // ...\n}\n```\n\nAnd expand it to this.\n\n```javascript\nfunction addUser() {\n    // ...\n}\n\nfunction removeUser() {\n    // ...\n}\n```\n\nYou can also use things like `{1..10}` to iterate through numbers as well as environment variables such as `$HOME`, so it works much like bash brace and variable expansion. Read the [expand][] documentation for all the details, but basically it supports a **lot** of things.\n\n## Usage\n\nSimply execute `:Expand` on your desired line or visually select a block of lines, such as the function above, and then execute `:Expand`. Vim will automatically populate the range in front of the command for you. Of course you can enter a manual range with `:1,3Expand`.\n\n## Installation\n\nAdd `Olical/vim-expand` to your favourite plugin manager such as [vim-plug][], which I'm currently using in my [dotfiles][].\n\n```viml\nPlug 'Olical/vim-expand'\n```\n\n## License\n\nThe [Unlicense][], so you can use this however you want, wherever you want. The full license file can be found in this directory within the `UNLICENSE` file.\n\n## Author\n\n[Oliver Caldwell][] / [@OliverCaldwell][]\n\n[expand]: http://vimdoc.sourceforge.net/htmldoc/eval.html#expand%28%29\n[vim-plug]: https://github.com/junegunn/vim-plug\n[dotfiles]: https://github.com/Olical/dotfiles\n[unlicense]: http://unlicense.org/\n[Oliver Caldwell]: http://oli.me.uk/\n[@OliverCaldwell]: https://twitter.com/OliverCaldwell\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folical%2Fvim-expand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folical%2Fvim-expand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folical%2Fvim-expand/lists"}