dot_files/vim-plugins/bundle/xptemplate/ftplugin/r/r.xpt.vim
2017-07-09 00:26:06 +03:00

36 lines
524 B
VimL

XPTemplate priority=lang
let s:f = g:XPTfuncs()
XPTinclude
\ _common/common
\ _condition/c.like
XPT for " for (... in ...) { ... }
for (`name^ in `vec^)
{
`cursor^
}
XPT while " while ( ... ) { ... }
while ( `cond^ )
{
`cursor^
}
XPT fun " ... <- function ( ... , ... ) { ... }
`funName^ <- function( `args^ )
{
`cursor^
}
XPT operator " %...% <- function ( ... , ... ) { ... }
%`funName^% <- function( `args^ )
{
`cursor^
}
XPT head " #! /usr/bin/env/Rscript
#! /usr/bin/env Rscript