Vim Tips Wiki
m (Reverted edits by Emprego.curitiba (talk | block) to last version by JohnBeckett)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ScriptComments|1567|rails: Ruby on Rails: easy file navigation, enhanced syntax highlighting, and more}}
+
{{ScriptComments|rails: Ruby on Rails: easy file navigation, enhanced syntax highlighting, and more}}
   
 
==Comments==
 
==Comments==
Line 13: Line 13:
   
 
And I've found no ill effects so far. -R
 
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:
  +
  +
<blockquote>"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."</blockquote>
  +
  +
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

Latest revision as of 16:21, 31 July 2012

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