{"id":18532754,"url":"https://github.com/jasonlong/vim-textobj-css","last_synced_at":"2025-06-14T18:08:46.236Z","repository":{"id":137029195,"uuid":"52010423","full_name":"jasonlong/vim-textobj-css","owner":"jasonlong","description":"Vim text objects for CSS, Sass, etc.","archived":false,"fork":false,"pushed_at":"2018-05-14T14:12:20.000Z","size":6,"stargazers_count":32,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-11T12:07:38.666Z","etag":null,"topics":["vim","vim-textobj-user"],"latest_commit_sha":null,"homepage":"","language":"Vim script","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/jasonlong.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":"2016-02-18T13:52:00.000Z","updated_at":"2024-07-24T16:39:50.000Z","dependencies_parsed_at":"2023-03-14T00:15:38.905Z","dependency_job_id":null,"html_url":"https://github.com/jasonlong/vim-textobj-css","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jasonlong/vim-textobj-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonlong%2Fvim-textobj-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonlong%2Fvim-textobj-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonlong%2Fvim-textobj-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonlong%2Fvim-textobj-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonlong","download_url":"https://codeload.github.com/jasonlong/vim-textobj-css/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonlong%2Fvim-textobj-css/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259860405,"owners_count":22922987,"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":["vim","vim-textobj-user"],"created_at":"2024-11-06T19:07:51.271Z","updated_at":"2025-06-14T18:08:46.222Z","avatar_url":"https://github.com/jasonlong.png","language":"Vim script","readme":"# vim-textobj-css\n\n[Text objects](http://blog.carbonfive.com/2011/10/17/vim-text-objects-the-definitive-guide/) in Vim are very useful. They allow you to modify text by word, sentence, paragraph, HTML tag, and more. [vim-textobj-user](https://github.com/kana/vim-textobj-user) is a Vim plugin that lets you define your own text objects and this project builds on that one to let you work with CSS blocks more easily.\n\n![demo](https://cloud.githubusercontent.com/assets/6104/13205723/558fa396-d8bc-11e5-8587-f1763a98f62b.gif)\n\n### Usage\n\n* `vic` Visually select inner CSS (inner rules)\n* `vac` Viscually select \"all\" CSS (entire block w/ selector(s))\n* `cic` Change inner CSS\n* `cac` Change \"all\" CSS\n* `dic` Delete inner CSS\n* `dac` Delete \"all\" CSS\n\nIt's often handy to visually select a nested CSS block with `vac` and then type `ac` again to expand the selection to the parent block. This is shown in the above GIF.\n\n#### :warning: Warning if you use vim-gitgutter :warning:\n\nvim-gitgutter supplies some text objects for dealing with hunks and these conflict with vim-textobj-css. As the [vim-gitgutter README describes](https://github.com/airblade/vim-gitgutter#hunks), you can override those settings with something like:\n\n```\nomap ih \u003cPlug\u003eGitGutterTextObjectInnerPending\nomap ah \u003cPlug\u003eGitGutterTextObjectOuterPending\nxmap ih \u003cPlug\u003eGitGutterTextObjectInnerVisual\nxmap ah \u003cPlug\u003eGitGutterTextObjectOuterVisual\n```\n\n## Installation\n\nThis plugin requires [vim-textobj-user](https://github.com/kana/vim-textobj-user). Use your favorite plugin manager to add these lines.\n\n### vim-plug\n```\nPlug 'kana/vim-textobj-user'\nPlug 'jasonlong/vim-textobj-css'\n```\n\n### NeoBundle\n```\nNeoBundle 'kana/vim-textobj-user'\nNeoBundle 'jasonlong/vim-textobj-css'\n```\n\n### Vundle\n```\nPlugin 'kana/vim-textobj-user'\nPlugin 'jasonlong/vim-textobj-css'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonlong%2Fvim-textobj-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonlong%2Fvim-textobj-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonlong%2Fvim-textobj-css/lists"}