Vim-rails: E492: Not an editor command: Rmodel

From FVue
Jump to: navigation, search

Problem

Within Vim, if i do:

:Rmodel user

Vim gives an error:

E492: Not an editor command: Rmodel user

Environment

  • Vim-8
  • dotbot-1.17.0-1-g5d83f9e
  • vim-rails-5.4-196-g64befc6

Solution

It appears :Rmodel is deprecated, and is replaced by a whole set of new commands: :Vmodel, :Tmodel, etc.

After having upgraded my dotfiles, I forgot to clear up the Vim documentation directory (rm ~/.vim/doc). That is to say, Vim command :helptags ALL added the file 'doc/tags' to my git submodules:

$ git status
modified:   vim/pack/plugins/start/DrawIt (untracked content)

Some plugins have 'doc/tags' in .gitignore:

$ cat pack/plugins/start/vim-rails/.gitignore
/rails.zip
/rails.vba
/doc/tags

but where this isn't the case, I need to add:

ignore = dirty

to my .gitmodules (from: https://stackoverflow.com/a/10215013)

Journal

20200309

Not an Editor Command error · Issue #54 · tpope/vim-rails · GitHub

Not an editor command: EVmodel · Issue #550 · tpope/vim-rails · GitHub