{"id":13416543,"url":"https://github.com/tpope/vim-rails","last_synced_at":"2025-05-13T19:03:01.796Z","repository":{"id":439180,"uuid":"61032","full_name":"tpope/vim-rails","owner":"tpope","description":"rails.vim: Ruby on Rails power tools","archived":false,"fork":false,"pushed_at":"2025-02-19T06:36:00.000Z","size":2793,"stargazers_count":4133,"open_issues_count":41,"forks_count":384,"subscribers_count":99,"default_branch":"master","last_synced_at":"2025-04-27T23:58:50.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=1567","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,"zenodo":null},"funding":{"github":"tpope"}},"created_at":"2008-10-09T03:16:22.000Z","updated_at":"2025-04-26T02:56:46.000Z","dependencies_parsed_at":"2023-07-05T14:55:16.883Z","dependency_job_id":"ad8bdddb-c67d-4319-a347-ab4b1a49e8ef","html_url":"https://github.com/tpope/vim-rails","commit_stats":{"total_commits":1718,"total_committers":97,"mean_commits":"17.711340206185568","dds":0.07508731082654252,"last_synced_commit":"959e94b76e6ebdf984acef61649ba7d0f62bd425"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/vim-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010792,"owners_count":21998993,"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-30T21:01:00.489Z","updated_at":"2025-05-13T19:03:01.775Z","avatar_url":"https://github.com/tpope.png","language":"Vim Script","funding_links":["https://github.com/sponsors/tpope"],"categories":["Vim script","Vim Script","Rails development","How to include your own stuff?","Uncategorized","Editor Plugins","Framework Specific"],"sub_categories":["Code completion","Uncategorized","Install for multiple users","Rails"],"readme":"# rails.vim\n\nThis is a massive (in a good way) Vim plugin for editing Ruby on Rails\napplications.\n\n* Easy navigation of the Rails directory structure.  `gf` considers\n  context and knows about partials, fixtures, and much more.  There are\n  two commands, `:A` (alternate) and `:R` (related) for easy jumping\n  between files, including favorites like model to schema, template to\n  helper, and controller to functional test.  Commands like `:Emodel`,\n  `:Eview`, `:Econtroller`, are provided to `:edit` files by type, along\n  with `S`, `V`, and `T` variants for `:split`, `:vsplit`, and\n  `:tabedit`.  Throw a bang on the end (`:Emodel foo!`) to automatically\n  create the file with the standard boilerplate if it doesn't exist.\n  `:help rails-navigation`\n\n* Enhanced syntax highlighting.  From `has_and_belongs_to_many` to\n  `distance_of_time_in_words`, it's here.\n\n* Interface to the `rails` command.  Generally, use `:Rails console` to\n  call `rails console`.  Many commands have wrappers with additional features:\n  `:Generate controller Blog` generates a blog controller and loads the\n  generated files into the quickfix list, and `:Runner` wraps `rails runner`\n  and doubles as a direct test runner.  `:help rails-exec`\n\n* Default task runner.  Use `:Rails` (with no arguments) to run the current\n  test, spec, or feature.  Use `:.Rails` to do a focused run of just the\n  method, example, or scenario on the current line.  `:Rails` can also run\n  arbitrary migrations, load individual fixtures, and more.\n  `:help rails-default-task`\n\n* Partial and concern extraction.  In a view, `:Extract {file}`\n  replaces the desired range (typically selected in visual line mode)\n  with `render '{file}'`, which is automatically created with your\n  content.  In a model or controller, a concern is created, with the\n  appropriate `include` declaration left behind.\n  `:help rails-:Extract`\n\n* Fully customizable. Define \"projections\" at the global, app, or gem\n  level to define navigation commands and override the alternate file,\n  default rake task, syntax highlighting, and more.\n  `:help rails-projections`.\n\n* Integration with other plugins.  If [dispatch.vim][] is installed, `:Rails`\n  and other command wrappers will use it for asynchronous execution.  Users of\n  [dadbod.vim](https://github.com/tpope/vim-dadbod) and\n  [dbext](http://www.vim.org/script.php?script_id=356) get easy access to\n  their application's database.  Users of\n  [abolish.vim](https://github.com/tpope/vim-abolish) get pluralize and\n  tableize coercions, and users of [bundler.vim][] get a smattering of\n  features.   `:help rails-integration`\n\n## Installation\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 https://github.com/tpope/vim-rails.git\n    vim -u NONE -c \"helptags vim-rails/doc\" -c q\n\nWhile not strictly necessary, [bundler.vim][] and [dispatch.vim][] are highly\nrecommended.\n\n[bundler.vim]: https://github.com/tpope/vim-bundler\n[dispatch.vim]: https://github.com/tpope/vim-dispatch\n\n## FAQ\n\n\u003e I installed the plugin and started Vim.  Why does only the `:Rails`\n\u003e command exist?\n\nThis plugin cares about the current file, not the current working\ndirectory.  Edit a file from a Rails application.\n\n\u003e I opened a new tab.  Why does only the `:Rails` command exist?\n\nThis plugin cares about the current file, not the current working directory.\nEdit a file from a Rails application.  You can use `:AT` and the `:T` family\nof commands to open a new tab and edit a file at the same time.\n\n\u003e Can I use rails.vim to edit Rails engines?\n\nIt's not supported, but if you `touch config/environment.rb` in the root\nof the engine, things should mostly work.\n\n\u003e Can I use rails.vim to edit other Ruby projects?\n\nI wrote [rake.vim](https://github.com/tpope/vim-rake) for exactly that\npurpose.  It activates for any project with a `Rakefile` that's not a\nRails application.\n\n\u003e What Rails versions are supported?\n\nAll of them, although you may notice a few minor breakages if you dip below\n3.0.  A few features like syntax highlighting tend to reflect the latest\nversion only.\n\n\u003e Didn't rails.vim used to handle indent settings?\n\nIt got yanked after increasing contention over JavaScript.  Check out\n[sleuth.vim](https://github.com/tpope/vim-sleuth).\n\n## Self-Promotion\n\nLike rails.vim? Follow the repository on\n[GitHub](https://github.com/tpope/vim-rails) and vote for it on\n[vim.org](http://www.vim.org/scripts/script.php?script_id=1567).  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-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Fvim-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-rails/lists"}