I am using SpaceVim as Ruby on Rails IDE and installed the tpope/vim-rails plugin. However, the other commands like :Econtroller, :Emodel, :find, commands are working just fine but the gf command provided by this plugin is not working in SpaceVim.

It shows me with an error message.

# for partial
Can't find file "users/edit_form" in path

# with association
User has_many :notes
Can't find file "notes" in path

You can check :map gf, it will tell you what this key is mapped to.

  • I think the problem is not what gf is mapped to since the command executed seems to be the correct one, the issue is that the command doesn't open the right files. – statox Oct 11 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.