Skip to content

Instantly share code, notes, and snippets.

@graywh
Created April 15, 2009 14:37
Show Gist options
  • Save graywh/95799 to your computer and use it in GitHub Desktop.
Save graywh/95799 to your computer and use it in GitHub Desktop.
detect .r files as R filetype in vim
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
" R
autocmd! BufNewFile,BufRead *.[rRsS] setfiletype r
autocmd! BufNewFile,BufRead *.[rR]history setfiletype r
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment