[R] VIM Syntax Highlighting

Luke Whitaker luke at inpharmatica.co.uk
Tue Mar 11 13:08:24 CET 2003

On Mon, 10 Mar 2003, Fernando Henrique Ferraz Pereira da Rosa wrote:

>      Has anyone got vim to have syntax highlighting with R function codes? I
> know there's something similar that works with emacs (ESS or something like
> that), but I was wondering if anyone knew an equivalent that worked with vim.

Version 5.6.70 of vim comes with a syntax file for "S-lang" as standard.
Either pick "S-lang" from the "Syntax" menu or do ":cal SetSyn("slang")"
on the vim command line. Not surprisingly, this works perfectly well 
with either S or R.

Luke Whitaker

More information about the R-help mailing list