R and VIM
I modified the existing R vim syntax file, and created a vim R indent file since R's indention in vim was broken. Below are the attachments.
Installation instructions:
- From a terminal run the command:
mkdir -p ~/.vim/indent ~/.vim/syntax
- Move indent-r.vim to ~/.vim/indent/ and rename it to r.vim (Ex:
mv indent-r.vim ~/.vim/indent/r.vim
)
- Move syntax-r.vim to ~/.vim/syntax/ and rename it to r.vim (Ex:
mv syntax-r.vim ~/.vim/syntax/r.vim
)
The syntax file currently defines highlighting for most (if not all) functions from the base, stats, graphics, tools, methods, and utils packages. Fixed to include primitive and internal statements. There may be duplicates; also there is some concern about the file size, since syntax files are generally supposed to be small. Works fine on my machine though.
For the bleeding edge version of these files, here's a
link to my subversion repository (assuming my computer is on and my ip address doesn't change for a while).
--
JeremyStephens - 14 Sep 2005