Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4587298
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:45:37+00:00 2026-05-21T21:45:37+00:00

If I don’t have a file open from the rails project I’m working on,

  • 0

If I don’t have a file open from the rails project I’m working on, I can’t use any rails.vim commands such as :Rcontroller, :Rmodel, :Rview (I get the error: Not an editor command).

Additionally, if i try to use :Rconfig or :Rroutes when I don’t have a rails file open, I get the error: Not an editor command: :Rfind application.yml.

I’m using a pre-fab vim config so I am guessing I need to hunt down an issue in there? Or is this just the way rails.vim is meant to work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:45:38+00:00Added an answer on May 21, 2026 at 9:45 pm

    The short answer is that this is the way rails.vim works.

    rails.vim tries to detect the Rails project using the path of the current buffer. In general this makes sense because a number of the commands provided by rails.vim are specific to the current file. Also, it is very possible to open files from several Rails projects in the same Vim session, so even commands that only reference the project as a whole need to be tied to the current context.

    It would be nice if the project-level commands like you describe could be available when you’re in a new buffer by falling back to getcwd() and detect that the current working directory is a Rails application. But from a cursory examination of the source, I think it would require some significant restructuring of the plugin.

    I wrote a plugin called Open that opens up a project using NERDTree and project the README as a default view. One of the advantages of this is that by having a file open by default, you can use any of the Rails commands immediately.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't have any experience in updating a Rails app and when I google
Don't be afraid to use any technical jargon or low-level explanations for things, please.
Don't have much to say, just can get into the event handler. XAML: <Grid>
Don't think my virtualhost is working correctly. This is what I have inside of
Don't ask me why but i can't use this method because I need to
Don't know why but I can't find a solution to this. I have 3
Don't know how to google for such, but is there a way to query
I have just tried to save a simple *.rtf file with some websites and
(Don't know if this is strictly on-topic, but I don't see any better Stack
Don't know if anyone can help me with this or if it's even possible.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.