class RuboCop::MagicComment::VimComment

comment.encoding # => ‘ascii-8bit’
)
‘# vim: filetype=ruby, fileencoding=ascii-8bit’
comment = RuboCop::MagicComment.parse(
@example Vim style comment
Wrapper for Vim style magic comments.

def encoding


# vim: foo=bar, fileencoding=ascii-8bit
# does nothing

# vim: foo=bar, fileencoding=ascii-8bit
# works

is at least one other token included in the string. For example
For some reason the fileencoding keyword only works if there
def encoding
  match('fileencoding') if tokens.size > 1
end

def frozen_string_literal; end

Vim comments cannot specify frozen string literal behavior.
def frozen_string_literal; end