From: Conrad Schneiker Date: 2000-11-07T20:10:03+09:00 Subject: [ruby-talk:6115] Re: Syntax highlighting for vim? Johann Spies wrote: > I don't know where I got this but I have the following in my .vimrc: > > ------------- > map :!ruby -r xmp -n -e 'xmp($_, "\%l\t\t\# \%r\n")' > -------------- Isn't this the thing that gets Ruby to evaluate the current selection and then inserts it on the right hand side of your text? > When I try and use it (Alt-F10), nothing happens. > > How do I get syntax highlighting for ruby on the vim editor? I don't use syntax highlighting at all. But you might try the command ":help syntax" to get more info. Or rumage around www.vim.org for the Vim FAQ and User's Guide. And check out: # Subject: Re: VIM syntax file for Ruby? # Date: 07/10/2000 # Author: hipster # # << previous in search next in search >> # # On Sun, 09 Jul 2000 16:40:40 +0200, Patrick Schoenbach wrote: # > # > Hi guys, # > # > I know, someone has written a preliminary interface to Ruby for VIM. Did # > someone also hack up a sytax highlighting file for VIM? If so, I would # > be very interested. # # http://www.xs4all.nl/~hipster/lib/ruby/ruby.vim # imperfect but useable... # # Michel As a really desperate last resort, do ":! emacs". (According to the Ruby FAQ 1.11, "ruby-mode.el is supplied in the Ruby distribution". Oh yea, and look what else it says a few lines later about that ":map ..." thing.) Hmm. Maybe when you finally find the answer, you could see about getting it added to the Ruby FAQ. Conrad