Vim Tips Wiki
Register
Advertisement

Use this page to discuss script 1567 rails: Ruby on Rails: easy file navigation, enhanced syntax highlighting, and more

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments[]

I'm not sure why, but the default presence of the menu supplied by rails.vim is

!has('mac')

I've changed it locally on my Mac (OS X, 10.6.2) to

has('gui')

And I've found no ill effects so far. -R


Ruby 1.9 new hash syntax doesn't get highlighted. It would be great to have that. In the release notes of the latest version I see this "Fix gf with Ruby 1.9 hashes" but I do not see any highlighting.

Or is the hash key just supposed to remain in default color (grey in my case - I use Gnome terminal with "Grey on Black" built in theme)?

-- brahmana (techbrahmana.blogspot.com)


From the docs:

"A value of 2 is used for 'shiftwidth' (and 'softtabstop'), and 'expandtab' is enabled. This is a strong convention in Rails, so the conventional wisdom that this is a user preference has been ignored."

Stepping into a *.rb file, and back out to a .js or other unmanaged file, effs up my default tabstop=2 and softtabstop=2 (they're reset to 4). FAIL.

-- site.vimwiki@kamera.50mail.com

Advertisement