Skip to content

Option to not load Rails.vim #391

@avdgaag

Description

@avdgaag

Rails.vim is awesome, but it is currently activated for any project with a config/environment.rb. A Lotus project also has a config/environment.rb, so rails.vim will activate for it — but being a different framework most functionality mostly doesn't work or simply doesn't make sense. Rake.vim is great, but if I want to make a custom Vim plugin for working with Lotus projects and their conventions, I would need a way to not activate Rails.vim at all (and preferably keep Rake.vim).

Here's some strategies I can think of:

  1. Change the detection of Rails apps to something more sophisticated, such as detecting gem "rails" in ./Gemfile.
  2. Adding a global Vim configuration you can put in your ~/.vimrc to skip loading Rails.vim for certain paths.
  3. Adding a do_not_load_rails_vim setting in a project-specific vimrc file.
  4. Uninstall Rails.vim altogether and re-install when switching to a Rails project where you do need it.

To me these all sound equally bad. Is there any way to accomplish this, that I am unaware of? Any thoughts on the matter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions