Permalink
Browse files

Initial import

  • Loading branch information...
0 parents commit e5f1845f4585aeadf78e972a61fad1b579744549 James Harris committed Jun 14, 2010
797 README

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,9 @@
+
+
+autocmd BufNewFile,BufRead *.r set ft=r
+autocmd BufNewFile,BufRead *.R set ft=r
+autocmd BufNewFile,BufRead *.s set ft=r
+autocmd BufNewFile,BufRead *.S set ft=r
+autocmd BufRead *.Rout set ft=rout
+autocmd BufRead *.Rhistory set ft=r
+
@@ -0,0 +1,29 @@
+" With some lines of code borrowed from Zhuojun Chen.
+
+" New line, carriage return, tab, bell, feed, backslash
+syn match rSpecial display contained "\\\(n\|r\|t\|a\|f\|'\|\"\)\|\\\\"
+
+" Hexadecimal and Octal digits
+syn match rSpecial display contained "\\\(x\x\{1,2}\|\o\{1,3}\)"
+
+syn keyword rBoolean T F
+syn keyword rConstant R.version.string
+syn match rComment contains=@Spell /\#.*/
+syn region rString contains=rSpecial,@Spell start=/"/ skip=/\\\\\|\\"/ end=/"/
+syn region rString contains=rSpecial,@Spell start=/'/ skip=/\\\\\|\\'/ end=/'/
+syn match rOperator /[\*\!\%\&\+\-\<\>\=\^\|\~\`/:@]/
+syn match rOperator /%o%\|%x%\|xor\|isTRUE/
+syn match rDollar /\$/
+" Load functions file
+let g:rfunfile = expand("<sfile>:h:h:h") . "/tools/rfunctions"
+if filereadable(g:rfunfile)
+ exe "source " . g:rfunfile
+endif
+syn keyword rPreProc library require
+
+hi def link rDollar SpecialChar
+hi def link rSpecial SpecialChar
+hi def link rFunction Function
+hi def link rOperator Operator
+hi def link rPreProc PreProc
+
@@ -0,0 +1,47 @@
+" Vim completion script
+" Language: R
+" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
+" Last Change: 2009 May 01
+"
+
+fun! rcomplete#CompleteR(findstart, base)
+ if a:findstart
+ " locate the start of the word
+ let line = getline('.')
+ let start = col('.') - 1
+ while start > 0 && (line[start - 1] =~ '\a' || line[start - 1] =~ '\.' || line[start - 1] =~ '\$' || line[start - 1] =~ '\d')
+ let start -= 1
+ endwhile
+ return start
+ else
+ if b:needsnewtags == 1
+ call BuildRTags("GlobalEnv")
+ endif
+ let res = []
+ if strlen(a:base) == 0
+ return res
+ endif
+ let flines2 = readfile(b:rtagsfile)
+ let flines = b:flines1 + flines2
+ " The char '$' at the end of 'a:base' is treated as end of line, and
+ " the pattern is never found in 'line'.
+ let newbase = '^' . substitute(a:base, "\\$$", "", "")
+ for line in flines
+ if line =~ newbase
+ " Skip cols of data frames unless the user is really looking for them.
+ if a:base !~ '\$' && line =~ '\$'
+ continue
+ endif
+ "let tmp1 = split(line)
+ "let tmp2 = {'word': tmp1[0], 'menu': tmp1[1] . ' ' . tmp1[2]}
+ let tmp1 = split(line,':')
+ let tmp2 = {'word': tmp1[0], 'menu': tmp1[1] . ' ' . tmp1[2], 'info': tmp1[3]}
+ call add(res, tmp2)
+ endif
+ endfor
+ return res
+ endif
+endfun
+
+set completefunc=CompleteR
+
@@ -0,0 +1,160 @@
+/* XPM */
+static char * r_close_xpm[] = {
+"24 24 133 2",
+" c None",
+". c #DF421E",
+"+ c #C4CACC",
+"@ c #D4DAEC",
+"# c #D4DEEC",
+"$ c #D4DEE4",
+"% c #D4DAE4",
+"& c #C4CEDC",
+"* c #FCF1EF",
+"= c #FDFBFA",
+"- c #FDF6F4",
+"; c #F9DFDA",
+"> c #ACB2D4",
+", c #8492BC",
+"' c #6C7A9C",
+") c #6C7AA4",
+"! c #7C82AC",
+"~ c #9CA2BC",
+"{ c #9CA6CC",
+"] c #949EC4",
+"^ c #9CA2C4",
+"/ c #949ECC",
+"( c #8C96C4",
+"_ c #7C86B4",
+": c #747EAC",
+"< c #FFFFFF",
+"[ c #FBECE9",
+"} c #ACB2CC",
+"| c #8492C4",
+"1 c #7482A4",
+"2 c #8496C4",
+"3 c #BCC2EC",
+"4 c #545E74",
+"5 c #4C4E6C",
+"6 c #444E64",
+"7 c #545E7C",
+"8 c #747AA4",
+"9 c #8492CC",
+"0 c #7486B4",
+"a c #9CA6DC",
+"b c #A4B2DC",
+"c c #4C526C",
+"d c #8C8A8C",
+"e c #8C8A94",
+"f c #8C8E94",
+"g c #848694",
+"h c #545E84",
+"i c #FBEAE7",
+"j c #FDF9F8",
+"k c #7486AC",
+"l c #94A2D4",
+"m c #5C6674",
+"n c #7C8AB4",
+"o c #8C92C4",
+"p c #7482B4",
+"q c #5C6274",
+"r c #8C9AC4",
+"s c #E38670",
+"t c #BC3719",
+"u c #9CA6D4",
+"v c #949ACC",
+"w c #5C627C",
+"x c #9CAAD4",
+"y c #5C5E74",
+"z c #C4C6CC",
+"A c #949ED4",
+"B c #6C769C",
+"C c #DCDEF4",
+"D c #8C92AC",
+"E c #7C8EAC",
+"F c #CCD6EC",
+"G c #3C465C",
+"H c #8C96CC",
+"I c #949AAC",
+"J c #D4D6DC",
+"K c #DCDEE4",
+"L c #DCE2E4",
+"M c #CCD2E4",
+"N c #CCCED4",
+"O c #A4AAC4",
+"P c #8C96B4",
+"Q c #C4CADC",
+"R c #BCC2D4",
+"S c #2C2E3C",
+"T c #9C9EA4",
+"U c #7482AC",
+"V c #8C9ACC",
+"W c #9CAACC",
+"X c #94A2C4",
+"Y c #8496B4",
+"Z c #747EA4",
+"` c #949ABC",
+" . c #242A34",
+".. c #3C3A3C",
+"+. c #D4D2D4",
+"@. c #CCD2F4",
+"#. c #7C82A4",
+"$. c #8C9ECC",
+"%. c #94A2DC",
+"&. c #BCC6F4",
+"*. c #4C4E54",
+"=. c #ACAEB4",
+"-. c #94A6D4",
+";. c #3C424C",
+">. c #646A84",
+",. c #94A6DC",
+"'. c #9CAADC",
+"). c #B4BAC4",
+"!. c #5C668C",
+"~. c #B4BAD4",
+"{. c #ACAEBC",
+"]. c #848EBC",
+"^. c #848EC4",
+"/. c #64728C",
+"(. c #848EB4",
+"_. c #DCDEDC",
+":. c #8496CC",
+"<. c #8C96BC",
+"[. c #ACBAE4",
+"}. c #9CA6BC",
+"|. c #A4B2E4",
+"1. c #B4BEDC",
+"2. c #A4B2D4",
+"3. c #ACB6D4",
+"4. c #848EAC",
+"5. c #BCBECC",
+"6. c #747A8C",
+"7. c #6C727C",
+"8. c #6C6E7C",
+"9. c #84868C",
+"0. c #BCBEC4",
+"a. c #747684",
+"b. c #ACAEAC",
+" ",
+" . . . . . . . ",
+" + @ # $ % $ % $ @ $ $ % % & . * = . - ; . ",
+" > , ' ) ! ~ { ] ^ / ^ ( _ : . = < [ < - . ",
+" } | 1 2 3 ~ 4 5 6 5 7 8 / 2 . . * < [ . . ",
+" } 9 0 a b c d d d e f g h , . - < i < j . ",
+" } 9 k l / m } n . * j . - ; . ",
+" } o p l / q r s . . . . . t ",
+" } | 0 u v w x : l b y z ",
+" } o k A v B C D E F D G ",
+" } | 0 H | I J K L K M N O P Q R S T ",
+" } 2 U H ( , V W X Y Z B ` & g ...+. ",
+" } 9 U A @.M D #.D u $.%.&.G *.=. ",
+" } ( U -.3 4 ..;.c >.( ,.'.c R ",
+" } 9 k l / q ).!.( $.E ~. ",
+" } 9 ! %./ q {.Z | _ ].' z ",
+" } ^.0 l / q )./.(.^.^., D _. ",
+" > | _ l v q {.Z | :.o B I ",
+" } 9 k %./ m I , :.V ].B N ",
+" > o <.[.{ q }.: 2 |.W #.I ",
+" } ].X 1.` 4 !.n 2.3.4.4 ",
+" 5.6.7.>.8.9. 0.6.8.8.8.a.b. ",
+" ",
+" "};
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit e5f1845

Please sign in to comment.