diff options
author | Nick Shipp <nick@shipp.ninja> | 2017-05-07 09:04:01 -0400 |
---|---|---|
committer | Nick Shipp <nick@shipp.ninja> | 2017-05-07 09:04:01 -0400 |
commit | c012f55efda29f09179e921cf148d79deb57616e (patch) | |
tree | ff0ad37f22622d51194cab192a2aa4b0106d7ad0 /vim/bundle/slimv/ftplugin/r | |
parent | 4ca8f6608883d230131f8a9e8b6d6c091c516049 (diff) |
Much maturering of vim configs
Diffstat (limited to 'vim/bundle/slimv/ftplugin/r')
-rw-r--r-- | vim/bundle/slimv/ftplugin/r/slimv-r.vim | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/vim/bundle/slimv/ftplugin/r/slimv-r.vim b/vim/bundle/slimv/ftplugin/r/slimv-r.vim new file mode 100644 index 0000000..a5c8ec9 --- /dev/null +++ b/vim/bundle/slimv/ftplugin/r/slimv-r.vim @@ -0,0 +1,60 @@ +" slimv-r.vim: +" R filetype plugin for Slimv +" Version: 0.9.13 +" Last Change: 04 May 2014 +" Maintainer: Tamas Kovacs <kovisoft at gmail dot com> +" License: This file is placed in the public domain. +" No warranty, express or implied. +" *** *** Use At-Your-Own-Risk! *** *** +" +" ===================================================================== +" +" Load Once: +if exists("b:did_ftplugin") + finish +endif + +" ---------- Begin part loaded once ---------- +if !exists( 'g:slimv_lisp_loaded' ) + +let g:slimv_lisp_loaded = 1 + +" Try to autodetect Lisp executable +" Returns list [Lisp executable, Lisp implementation] +function! SlimvAutodetect( preferred ) + return ['R', 'R'] +endfunction + +" Try to find out the Lisp implementation +function! SlimvImplementation() + return 'R' +endfunction + +" Try to autodetect SWANK and build the command to load the SWANK server +function! SlimvSwankLoader() +endfunction + +" Filetype specific initialization for the REPL buffer +function! SlimvInitRepl() + set filetype=r +endfunction + +" Lookup symbol in the list of Lisp Hyperspec symbol databases +function! SlimvHyperspecLookup( word, exact, all ) + return [ a:word ] +endfunction + +" Source Slimv general part +runtime ftplugin/**/slimv.vim + +endif "!exists( 'g:slimv_lisp_loaded' ) +" ---------- End of part loaded once ---------- + +"runtime ftplugin/**/r.vim + +" Must be called for each lisp buffer +call SlimvInitBuffer() + +" Don't load another plugin for this buffer +let b:did_ftplugin = 1 + |