Skip to content

Instantly share code, notes, and snippets.

@kana
Created September 14, 2008 08:50
Show Gist options
  • Save kana/10721 to your computer and use it in GitHub Desktop.
Save kana/10721 to your computer and use it in GitHub Desktop.
" Vim global plugin for R user
" Last Change: 2008 Sep 14
" Maintainer: Takao Yokoyama <[email protected]>
" License: This file is placed in the public domain.
if exists('g:loaded_rfunc')
finish
endif
let g:loaded_rfunc = 1
function! R()
echohl ModeMsg
echo '-- R mode --'
echohl None
.!R -q --save
normal! }
endfunction
function! Rv()
echohl ModeMsg
echo '-- R mode --'
echohl None
'<,'>!R -q --save
normal! }
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment