1

Please excuse my naivety, I come from a world of Textmate but have decided to give vim rails a shot.

I cannot get my syntax highlighting to work, I'm sure this is probably my setup but I am not vim savvy in knowing how to fix this.

Commands like :Rfind etc. are working.

Anyone care to give me some pointers?

2 Answers 2

6

Not sure if these commands are OS independent, but take a look at this and see if it helps:

https://help.ubuntu.com/community/VimHowto#Enable%20Syntax%20Highlighting

Specifically:

If you want to just enable syntax highlighting for a session, you can simply issue a colon command

:syn on

Syntax highlighting can be turned off by issuing another 'colon' command

:syn off

To make this permanent everytime you open a file, just add the following line to your vimrc.

syntax on
Sign up to request clarification or add additional context in comments.

1 Comment

The .vimrc will be located in ~/ (your home directory). cd with no args should take you there. If the file isn't there, create it.
0

I came across a pretty detailed blog post this morning which may have something you're missing: http://zigzag.github.com/2010/02/14/from-textmate-to-vim-for-rails-coders.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.