FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Modeline not being set for ruby/eruby files · Issue #128 · vim-ruby/vim-ruby · GitHub

Modeline not being set for ruby/eruby files #128

Description

When I create a random single .rb or .erb file, the filetype is recognized as ruby/eruby (which is set from ~/.vim/bundle/vim-ruby/ftdetect/ruby.vim), syntax, colors, highlighting, omnicompletion all function, but the modeline is not being set.

The following commands return these values:

:verbose set modeline? #last set from ~/.vimrc
:verbose set modelines? #returns modelines=5
:verbose set sw sts ts expandtab? #shiftwidth=8 softtabstop=0 tabstop=8 noexpandtab

I also have the vim-rails bundle installed in ~/.vim/bundle. The modeline works correctly for .rb and .erb files that are part of a rails project. Filetypes are determined and set by vim-ruby/ftdetect/ruby.vim, but

:verbose set sw sts ts expandtab? #shiftwidth=2 softtabstop=2 tabstop=8 expandtab

With all of these values being set from vim-rails/autoload/rails.vim

Any idea why the ruby.vim modeline is not being applied?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL