Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1123 commits
Select commit Hold shift + click to select a range
4ac2f94
Add variable for rmarkdown environment
mdlerch Nov 14, 2014
8894e91
Merge pull request #138 from mdlerch/rmd_render_envir
jalvesaq Nov 14, 2014
8d9abd3
Fix bugs in code for Python 3.
jalvesaq Nov 16, 2014
825682e
Fix bugs affecting Python3.
jalvesaq Nov 16, 2014
925c013
Use AF_INET.
jalvesaq Nov 17, 2014
4fd4d10
Rename _tmuxwasfirst to _do_tmux_split.
jalvesaq Nov 17, 2014
27db9b2
Require vimcom 1.1-0-dev1.
jalvesaq Nov 17, 2014
26e9f90
Remove Neovim specific Python scripts.
jalvesaq Nov 18, 2014
934594f
New option: vimrplugin_r_in_buffer.
jalvesaq Nov 18, 2014
5006893
Improvements in R in Neovim buffer.
jalvesaq Nov 18, 2014
d7cb41c
Fix directory path in Windows.
jalvesaq Nov 22, 2014
fb1e4fd
Fix names of local variables.
jalvesaq Nov 23, 2014
56da1b8
Improve colors of R output (filetype=rout).
jalvesaq Nov 23, 2014
8aa49a8
Avoid has("python") when has("nvim").
jalvesaq Nov 24, 2014
833d5ac
Require vimcom 1.1-0dev3.
jalvesaq Nov 24, 2014
ae11ca9
Don't use Python to find R path.
jalvesaq Nov 24, 2014
be042cd
Fix small typo
mdlerch Nov 24, 2014
7e17b9d
Merge pull request #141 from mdlerch/rmddir
jalvesaq Nov 24, 2014
8d7cd98
Move Python code to vimcom (translated into C).
jalvesaq Nov 24, 2014
21e0b88
Minor bug fix.
jalvesaq Nov 24, 2014
09eba92
Bug fixes in R start on Windows.
jalvesaq Nov 25, 2014
27fe938
Spell check of first 1000 lines
FvD Nov 26, 2014
2becc44
Minor bug fixes.
jalvesaq Nov 26, 2014
ac889a3
Change color of routIndex.
jalvesaq Nov 26, 2014
f548ee7
Add omnicompletion to R_Output buffer.
jalvesaq Nov 26, 2014
eed07a9
Improve conceal syntax in rout.
jalvesaq Nov 28, 2014
7d660e7
Map q to :q<CR> in rdoc.
jalvesaq Nov 28, 2014
d2324d5
Add prompt to R_Output.
jalvesaq Nov 28, 2014
52afe3d
Update documentation.
jalvesaq Nov 28, 2014
84b0b68
Add new capabilities to Neovim buffer running R.
jalvesaq Nov 30, 2014
b243fb7
Implement callback function for edit().
jalvesaq Dec 1, 2014
2390ca0
Minor bug fix in rout syntax highlighting.
jalvesaq Dec 4, 2014
558a56b
Adapt to changes in vimcom.
jalvesaq Dec 4, 2014
8836704
Only call Run_SyncTeX if vimrplugin_synctex = 1.
jalvesaq Dec 4, 2014
a52b16e
Add -g option to tmux commands again.
jalvesaq Dec 4, 2014
25f45ed
Add function to clean knitr cache directory.
jalvesaq Dec 4, 2014
63f3f1e
Syntax highlight: distinguish between = and ==.
jalvesaq Dec 5, 2014
aa76403
Add debug code for Windows.
jalvesaq Dec 6, 2014
14654bf
On Windows, avoid the need to call SetRPath().
jalvesaq Dec 6, 2014
64b51d6
Force use of R 32bit on Windows if GVim is 32bit.
jalvesaq Dec 7, 2014
e8c139b
Don't block Neovim while waiting R CMD BATCH
jalvesaq Dec 7, 2014
0f6ab24
Check if map exists before trying to unmap it.
mdlerch Dec 8, 2014
40d5e64
Merge pull request #146 from mdlerch/surround_mapping
jalvesaq Dec 8, 2014
293e59e
Allow the use of the old Python code to Send cmds
jalvesaq Dec 8, 2014
6294ad9
Make more mappings respect vimrplugin_user_maps_only
mdlerch Dec 9, 2014
2031e26
Warn if +libcall feature is missing.
jalvesaq Dec 9, 2014
3b91d26
Merge pull request #147 from mdlerch/remove_unrequested_mappings
jalvesaq Dec 9, 2014
f7c77b5
Change path of vimcom library.
jalvesaq Dec 10, 2014
931b966
Unset environment variable after R startup.
jalvesaq Dec 11, 2014
d47a9c9
Finish the conversion of gn gN into \gn \gN.
jalvesaq Dec 11, 2014
3e22f62
Fix path of "cache" directory.
jalvesaq Dec 11, 2014
56ee9b9
Get unbuffered string on R JobActivity
jalvesaq Dec 13, 2014
9a8d7e4
New highlight groups, as in colorout package
jalvesaq Dec 13, 2014
6c8a538
Split r-plugin/common_global.vim
jalvesaq Dec 14, 2014
817adc0
Try to find SumatraPDF twice
jalvesaq Dec 14, 2014
bb628df
ShowRDoc() now is called only by vimcom
jalvesaq Dec 14, 2014
16ce337
Remove command :RpluginConfig
jalvesaq Dec 14, 2014
b7965c6
Support multilib message and R History
jalvesaq Dec 14, 2014
09ec5c2
Call to SumatraFwd() on Windows
jalvesaq Dec 14, 2014
a2715f2
Use Sumatra command line instead of DDE.
jalvesaq Dec 14, 2014
a7b007a
Replace FindRConsole() with IsRRuning()
jalvesaq Dec 15, 2014
126b3f4
New function: ClearRInfo()
jalvesaq Dec 15, 2014
c95d3bd
New options: vimrplugin_compldir and vimrplugin_tmpdir
jalvesaq Dec 16, 2014
46a0f2d
libvimcom.so was renamed libVimR.so
jalvesaq Dec 16, 2014
430252a
Fix ReadEvalReply(): use old code.
jalvesaq Dec 17, 2014
ec48d5b
Replace rplugin_esc_tmpdir with rplugin_tmpdir
jalvesaq Dec 19, 2014
7ab4f68
Call BuildOmniList() in the first run of CompleteR()
jalvesaq Dec 19, 2014
ef1eba8
Can't run `syntax enable`
jalvesaq Dec 19, 2014
cb6a0eb
Use BufEnter event to update syntax
jalvesaq Dec 20, 2014
7392d59
Wait for \ao to finish in Neovim too
jalvesaq Dec 21, 2014
870f979
Make sure RCheckLibList() exists
mdlerch Dec 23, 2014
25b54eb
Merge pull request #149 from mdlerch/rcheckliblist_exists
jalvesaq Dec 23, 2014
c6c0a4c
Set rplugin_uservimfiles in setcompldir.vim
jalvesaq Dec 24, 2014
7b6a0fb
~/Library/Caches/Vim-R-plugin as OS X cache dir
jalvesaq Dec 24, 2014
c9ff55a
Try iTerm and Terminal full paths on OS X
jalvesaq Dec 25, 2014
f1e7ff1
Require vimcom 1.1-15.
jalvesaq Dec 25, 2014
9711402
Delete no longer required objlist/README
jalvesaq Dec 25, 2014
529dad1
Replace vimrplugin_external_ob with _tmux_ob
jalvesaq Dec 25, 2014
2561a0f
Update documentation
jalvesaq Dec 25, 2014
eea38e6
Remove support for Neovim
jalvesaq Dec 26, 2014
e4d2371
Try to find MacVim binary
jalvesaq Dec 27, 2014
5064e81
Always runtime the correct functions.vim
jalvesaq Dec 31, 2014
cfb2d0b
Minor changes
jalvesaq Dec 31, 2014
48d5fc9
Fix bugs on Windows
jalvesaq Jan 10, 2015
5629f99
Fix RMakeRmd call for beamer presentations
sjewo Jan 15, 2015
2130bf8
Merge pull request #151 from sjewo/master
jalvesaq Jan 15, 2015
e759c0e
Support SyncTeX on Windows
jalvesaq Jan 16, 2015
fd2230c
Fix bugs when running MacVim
jalvesaq Jan 17, 2015
547c4b3
Minor changes
jalvesaq Jan 18, 2015
313ae21
Version 1.2.
jalvesaq Jan 18, 2015
562b33e
Restore clipboard contents on Windows
jalvesaq Jan 23, 2015
56e31fb
Rename b:rsource as g:rplugin_rsource
jalvesaq Jan 23, 2015
aa693aa
Fix indentation
jalvesaq Jan 23, 2015
3c2be99
New options save_win_pos and arrange_windows
jalvesaq Jan 25, 2015
2f1d6ac
fix #152 Set working directory in OSX when using StartR_OSX
Jan 25, 2015
2a712ed
Merge pull request #153 from jomuller/master
jalvesaq Jan 25, 2015
11a2764
New option: vimrplugin_after_start
jalvesaq Jan 25, 2015
37e2fb6
Graphics explaining Vim--R communication
jalvesaq Jan 27, 2015
f9ceb08
Update documentation
jalvesaq Jan 27, 2015
f4fc65b
New option: vimrplugin_args_in_stline
jalvesaq Jan 30, 2015
50af806
Open R in MacOSX
Jan 31, 2015
fd929ff
Merge remote-tracking branch 'upstream/master'
Jan 31, 2015
4295bd2
Merge pull request #154 from jomuller/master
jalvesaq Jan 31, 2015
2445705
Tip on how to resize MacVim and Terminal on OS X
jalvesaq Jan 31, 2015
8a76674
Fix link vimcom -> Vim (no TCP connection)
jalvesaq Feb 1, 2015
cc13bc3
Note on Joris Muller installations instructions
jalvesaq Feb 7, 2015
beb02d4
Brought spell-check up to date with upstream/master
Feb 10, 2015
30aa719
Made changes following jalvesaq's review
Feb 11, 2015
010bd25
Merge pull request #157 from FvD/master
jalvesaq Feb 11, 2015
0f89c74
Minor corrections in doc
Feb 11, 2015
47e1037
Indent after user defined operator
jalvesaq Feb 20, 2015
eff056d
Define the value of r_indent_op_pattern
jalvesaq Feb 20, 2015
1c3ea48
Add code to test indentation after operator
jalvesaq Feb 20, 2015
6d322f7
Simplify r_indent_op_pattern
jalvesaq Feb 20, 2015
9dbc1f4
Change how source() is called
jalvesaq Feb 21, 2015
00fa166
Remove broken link from README.md
jalvesaq Feb 22, 2015
7f359d8
Avoid segmentation fault at startup
jalvesaq Feb 22, 2015
d80fe50
Send selected inline R code: Rnoweb, Rmd and Rrst
jalvesaq Feb 22, 2015
6060a9f
Version 1.2.1
jalvesaq Mar 5, 2015
dcb0990
Remove option to start R with --vanilla argument
jalvesaq Mar 10, 2015
74b182c
Fix path "\" substitution on RMakeRmd
zeloff Mar 20, 2015
a649479
Merge pull request #163 from zeloff/master
jalvesaq Mar 20, 2015
5ddee1c
Fix indentation of @ in rnoweb files
jalvesaq Mar 22, 2015
23f5e90
Update documentation
jalvesaq Mar 23, 2015
11fc831
Version 1.2.2
jalvesaq Mar 24, 2015
75adce7
Update .gitignore
jalvesaq Mar 24, 2015
efe58c4
Delete two unused environment variables
jalvesaq Mar 25, 2015
955bc63
Jump to Vim pane if R help called from R Console
jalvesaq Mar 25, 2015
3c08af4
Delete no longer useful routStdErr highlight group
jalvesaq Mar 26, 2015
18d7a3b
Set file name for Julia include()
jalvesaq Mar 28, 2015
14d29f9
Minor bug fix in indentation of R chunk in Rnoweb
jalvesaq Apr 1, 2015
fcd3d73
Delete temporary directory on VimLeave
jalvesaq Apr 6, 2015
3692cf7
Move some options from ~/.Rprofile to ~/.vimrc
jalvesaq Apr 6, 2015
4c005db
Improve vimrplugin_vim_wd
jalvesaq Apr 6, 2015
a4dfbfe
Fix directory path on Windows
jalvesaq Apr 8, 2015
8c67a9a
Update doc and Makefile
jalvesaq Apr 8, 2015
3383bdd
Delete official runtime files
jalvesaq Apr 8, 2015
b8eb373
Delete indent_test.R and indent_test_noalign.R
jalvesaq Apr 9, 2015
c17f17e
Version 1.2.3
jalvesaq Apr 9, 2015
e701462
Hint to use the Shift key for copying from tmux
jranke Apr 17, 2015
57d58a8
Make the tmux copy paste tip a bit more generic
jranke Apr 17, 2015
7c68f07
Merge pull request #171 from jranke/copy_from_tmux
jalvesaq Apr 17, 2015
80bf2e7
Make comment symbols follow indent settings
jalvesaq Apr 18, 2015
9449c1b
Add a space before '^-' for tmux set-buffer
jalvesaq Apr 18, 2015
4a6aeb4
Some more explanation for copying from tmux
jranke Apr 18, 2015
a80d807
Merge pull request #172 from jranke/copy_from_tmux
jalvesaq Apr 18, 2015
426f2a6
Delete R/global_R_plugin.vim
jalvesaq Apr 19, 2015
9ecae8c
Source ftplugin/*.vim if necessary
jalvesaq Apr 21, 2015
a5fae3b
Ask if user wants to install vimcom
jalvesaq Apr 21, 2015
a8d4616
Avoid duplicated tag when running :helptags
jalvesaq Apr 22, 2015
2d29bae
Do not ask if should install vimcom
jalvesaq Apr 22, 2015
708becf
version 1.2.4
jalvesaq Apr 22, 2015
ddb77d7
Bring back the echo send commands
jalvesaq Apr 28, 2015
b8209ee
New command to evaluate selection and get output
jalvesaq Apr 30, 2015
2850d97
Replace b:SourceLines with RSourceLines
jalvesaq Apr 30, 2015
5b5287d
Require vimcom 1.2-4
jalvesaq Apr 30, 2015
cdab3fb
Require vimcom 1.2-4.1
jalvesaq May 2, 2015
45fbae3
Run evince_backward.py only once for each rnw
jalvesaq May 3, 2015
baef3d0
Don't wait for either \ao or \so
jalvesaq May 4, 2015
a02a0bf
View data.frame and matrix objects
jalvesaq May 4, 2015
e66fbe0
Set rout colors when gui running
jalvesaq May 5, 2015
ff2e971
Change how colors are customized in rout files
jalvesaq May 5, 2015
b07a294
Replace b:rplugin_R with g:rplugin_R
jalvesaq May 5, 2015
855edb2
Version 1.2.5
jalvesaq May 6, 2015
dc56a6d
Move all menu functions to rplugin/gui_running.vim
jalvesaq May 9, 2015
2ec0094
The screenR.vim has new maintainer and address
jalvesaq May 13, 2015
eebe4f4
Remove option vimrplugin_vim_window
jalvesaq May 16, 2015
e331452
Delete synctex_okular_backward.sh used by nvim
jalvesaq May 17, 2015
10b1dd1
Allow spaces in file names for Evince SyncTeX
jalvesaq May 17, 2015
0e43be4
Set 'nolist' in the Object Browser
jalvesaq May 17, 2015
5646f1a
Omnicompletion of S4 slot names
jalvesaq May 31, 2015
cc00ca7
Delete unnecessary | from b:undo_ftplugin
jalvesaq May 31, 2015
3ce1fa4
Omnicompletion of any level in lists
jalvesaq May 31, 2015
504ee71
Quote function name to vim.list.args()
jalvesaq May 31, 2015
ba8e64f
Recognize lazy load objects
jalvesaq Jun 1, 2015
eca7de3
Improve support for lazy load objects
jalvesaq Jun 1, 2015
341ff30
Update documentation
jalvesaq Jun 1, 2015
e43de06
Check has("win64") first to find the correct dll
jalvesaq Jun 9, 2015
a0bdcc7
Replace & with &amp; when generating html doc
jalvesaq Jun 11, 2015
96f5d5e
Version 1.2.6
jalvesaq Jun 12, 2015
ffdb055
Warn that MacVim's Vim cannot receive msg from R
jalvesaq Jun 14, 2015
de831f3
Postpone the redraw of Obj. Br. while updating it
jalvesaq Jun 14, 2015
f5d66ae
Do not call redraw after updating the OB
jalvesaq Jun 14, 2015
0335844
Always delay highlight update on R startup
jalvesaq Jun 15, 2015
5952dcd
Minor corrections in doc
Feb 11, 2015
236a188
Merge branch 'master' of https://github.com/FvD/Vim-R-plugin
FvD Aug 21, 2015
009db67
Fixes regular expression to identify triple back-ticks in Rmd
FvD Aug 21, 2015
625a9e9
Merge pull request #182 from FvD/master
jalvesaq Aug 21, 2015
6661cf2
Make \aa use vimrplugin_source_args
jalvesaq Sep 11, 2015
443813f
Set updatetime=100 for external Object Browser
jalvesaq Sep 29, 2015
685c684
Use non R omnifunc in Rnw, Rmd and Rrst
jalvesaq Oct 3, 2015
6f0090c
Improve omni completion of Rhelp files
jalvesaq Oct 3, 2015
afc2807
Set encoding of start_zathura.py
jalvesaq Oct 10, 2015
26aea15
Warn if starting Zathura failed
jalvesaq Oct 10, 2015
918a2c1
Call independent Tmux when R in external terminal
jalvesaq Oct 11, 2015
6173840
Update tips on how to get 256 colors
jalvesaq Oct 12, 2015
20ffc32
Warn if --servername was not passed to Vim
jalvesaq Oct 13, 2015
0c860b5
Minor improvement in documentation
jalvesaq Oct 14, 2015
7ce01e3
Fix typo
mdlerch Oct 17, 2015
76f4178
Merge pull request #188 from mdlerch/fix_typo
jalvesaq Oct 17, 2015
3546ecf
Send ROxygen lines
jalvesaq Oct 20, 2015
e904c02
Merge branch 'send_roxygen_lines2' of https://github.com/jcfaria/Vim-…
jranke Oct 21, 2015
136738f
Send ROxygen lines
jalvesaq Oct 21, 2015
92c5b17
Merge branch 'master' of https://github.com/jcfaria/Vim-R-plugin
jranke Oct 21, 2015
9b90b73
Replace imap with inoremap
jalvesaq Oct 21, 2015
69f8526
Use the value of $XDG_CACHE_HOME if it is set
jalvesaq Oct 31, 2015
60f5051
Close #191
jalvesaq Nov 23, 2015
1bcdc67
Change mouse setting for Tmux >= 2.1
jalvesaq Nov 23, 2015
7c82895
Merge branch 'master' of https://github.com/jcfaria/Vim-R-plugin
jranke Nov 24, 2015
c298b33
About \o
jalvesaq Nov 25, 2015
9c78d2c
Version 1.2.7
jalvesaq Nov 27, 2015
2d4a621
Gnome-terminal no longer has --title
jalvesaq Dec 1, 2015
289da96
Add space to lines beginning with -
jalvesaq Dec 1, 2015
9a8efdf
New valid value for vimrplugin_assign (3)
jalvesaq Dec 2, 2015
2dfb1c9
Replace RGetClassFor with RGetFirstObjClass
jalvesaq Dec 11, 2015
e8c8b35
New option: vimrplugin_set_home_env
jalvesaq Dec 12, 2015
c80242b
Call vim.getclass() instead of class()
jalvesaq Dec 12, 2015
49397b1
Merge branch 'master' of https://github.com/jcfaria/Vim-R-plugin
jranke Dec 18, 2015
f80701c
Call SendLineToR if single whole line is selected
jalvesaq Dec 18, 2015
b281dc2
Fix variants of sending selected roxygen example code
jranke Dec 18, 2015
dfa6332
Merge branch 'master' of https://github.com/jcfaria/Vim-R-plugin into…
jranke Dec 18, 2015
c46f763
Merge pull request #198 from jranke/roxygen_send_selection
jalvesaq Dec 18, 2015
7124e41
Identify ROxygen in multiline selection sent to R
jalvesaq Dec 18, 2015
d32a70a
Standardize code indentation
jalvesaq Dec 19, 2015
aa838f0
Avoid vimcom failure if current dir name is UTF-8
jalvesaq Dec 23, 2015
6987bf0
Fix English grammar in variable name
jalvesaq Jan 23, 2016
b07faa3
Tmux does not have -V option on OpenBSD
jalvesaq Jan 27, 2016
c657fbb
Update web links in r-plugin.txt
jalvesaq Jan 29, 2016
8d12dea
Add note on Neovim to README.md
jalvesaq Jan 31, 2016
bb2a6d5
Better recognition of items in section "Arguments"
jalvesaq Feb 6, 2016
c21e7dc
Add word document render option for Rmarkdown plugin
kennethlimjf Feb 6, 2016
c20a327
Merge pull request #201 from kennethlimjf/master
jalvesaq Feb 6, 2016
f38719b
Change <Plug> name for Word document (Rmd)
jalvesaq Feb 7, 2016
dada3ce
Make the code of syntax/rout.vim more compact
jalvesaq Feb 8, 2016
d726d61
Version 1.2.8
jalvesaq Feb 20, 2016
5bb5df8
Use +channel instead of +clientserver
jalvesaq Mar 4, 2016
a253b08
Eliminate the need of library(vimcom) in Rprofile
jalvesaq Mar 6, 2016
d89aaf4
R_DEFAULT_PACKAGES in tmux_split and extern_term
jalvesaq Mar 8, 2016
d184b12
New option: vimrplugin_hi_fun
jalvesaq Mar 8, 2016
52da09b
Rename functions.vim as hi_fun.vim
jalvesaq Mar 9, 2016
69aac5b
Revert file name to functions.vim
jalvesaq Mar 9, 2016
2b758e1
Disable the plugin if Nvim-R is installed
jalvesaq Mar 10, 2016
31d0533
Delete no longer used variable
jalvesaq Mar 10, 2016
c669573
Warn that both +job and +channel are required
jalvesaq Mar 10, 2016
df6662c
Don't run functions.vim if Nvim-R is installed
jalvesaq Mar 10, 2016
57d2c70
Version 1.2.9
jalvesaq Mar 11, 2016
b41c353
Version 1.3.0
jalvesaq Mar 12, 2016
2248025
Warn if there are duplicated files
jalvesaq Mar 14, 2016
d52549d
Version 1.3.1
jalvesaq Mar 16, 2016
fcf3713
Warn that Vim-R-plugin was replaced by Nvim-R
jalvesaq Mar 16, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
doc/tags*
r-plugin/objlist/omnils_*
r-plugin/objlist/fun_*
r-plugin/tmp*
175 changes: 175 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# A copy of the GNU General Public License is available at
# http://www.r-project.org/Licenses/


###########################################################
# This script builds both the Vimball and the deb #
# files of released versions of the plugin. The files #
# are created at the /tmp directory. #
###########################################################



PLUGINHOME=`pwd`
PLUGINVERSION=1.3.1
DEBIANTIME=`date -R`
PLUGINRELEASEDATE=`date +"%Y-%m-%d"`
VIM2HTML=/usr/local/share/vim/vim74/doc/vim2html.pl


vimball:
# Update the version date in doc/r-plugin.txt header and in the news
sed -i -e "s/^Version: [0-9].[0-9].[0-9].[0-9]/Version: $(PLUGINVERSION)/" doc/r-plugin.txt
sed -i -e "s/^$(PLUGINVERSION) (201[0-9]-[0-9][0-9]-[0-9][0-9])$$/$(PLUGINVERSION) ($(PLUGINRELEASEDATE))/" doc/r-plugin.txt
vim -c "%MkVimball Vim-R-plugin ." -c "q" list_for_vimball
mv Vim-R-plugin.vmb /tmp

deb:
# Clean previously created files
(cd /tmp ; rm -rf vim-r-plugin-tmp )
# Create the directory of a Debian package
( cd /tmp ;\
mkdir -p vim-r-plugin-tmp/usr/share/vim/addons ;\
mkdir -p vim-r-plugin-tmp/usr/share/vim/registry ;\
mkdir -p vim-r-plugin-tmp/usr/share/doc/vim-r-plugin )
# Create the Debian changelog
echo $(DEBCHANGELOG) "vim-r-plugin ($(PLUGINVERSION)-1) unstable; urgency=low\n\
\n\
* Initial Release.\n\
\n\
-- Jakson Alves de Aquino <jalvesaq@gmail.com> $(DEBIANTIME)\n\
" | gzip --best > /tmp/vim-r-plugin-tmp/usr/share/doc/vim-r-plugin/changelog.gz
# Create the yaml script
echo "addon: r-plugin\n\
description: \"Filetype plugin to work with R\"\n\
disabledby: \"let disable_r_ftplugin = 1\"\n\
files:\n\
- autoload/rcomplete.vim\n\
- doc/r-plugin.txt\n\
- ftdetect/r.vim\n\
- ftplugin/r_rplugin.vim\n\
- ftplugin/rbrowser.vim\n\
- ftplugin/rdoc.vim\n\
- ftplugin/rhelp_rplugin.vim\n\
- ftplugin/rmd_rplugin.vim\n\
- ftplugin/rnoweb_rplugin.vim\n\
- ftplugin/rrst_rplugin.vim\n\
- r-plugin/common_buffer.vim\n\
- r-plugin/common_global.vim\n\
- r-plugin/functions.vim\n\
- r-plugin/gui_running.vim\n\
- r-plugin/setcompldir.vim\n\
- r-plugin/synctex_evince_backward.py\n\
- r-plugin/synctex_evince_forward.py\n\
- r-plugin/tmux.vim\n\
- r-plugin/tmux_split.vim\n\
- r-plugin/extern_term.vim\n\
- syntax/rbrowser.vim\n\
- syntax/rdoc.vim\n\
- syntax/rout.vim\n\
" > /tmp/vim-r-plugin-tmp/usr/share/vim/registry/vim-r-plugin.yaml
# Create the copyright
echo "Copyright (C) 2011-2015 Jakson Aquino\n\
\n\
License: GPLv2+\n\
\n\
This program is free software; you can redistribute it and/or modify\n\
it under the terms of the GNU General Public License as published by\n\
the Free Software Foundation; either version 2 of the License, or\n\
(at your option) any later version.\n\
\n\
This program is distributed in the hope that it will be useful,\n\
but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
GNU General Public License for more details.\n\
\n\
You should have received a copy of the GNU General Public License\n\
along with this program; if not, write to the Free Software\n\
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.\n\
\n\
See /usr/share/common-licenses/GPL-2, or\n\
<http://www.gnu.org/copyleft/gpl.txt> for the terms of the latest version\n\
of the GNU General Public License.\n\
" > /tmp/vim-r-plugin-tmp/usr/share/doc/vim-r-plugin/copyright
# Unpack the plugin
vim -c 'set nomore' -c 'let g:vimball_home="/tmp/vim-r-plugin-tmp/usr/share/vim/addons"' -c "so %" -c "q" /tmp/Vim-R-plugin.vmb
# Create the DEBIAN directory
( cd /tmp/vim-r-plugin-tmp ;\
mkdir DEBIAN ;\
INSTALLEDSIZE=`du -s | sed -e 's/\t.*//'` )
# Create the control file
echo "Package: vim-r-plugin\n\
Version: $(PLUGINVERSION)\n\
Architecture: all\n\
Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>\n\
Installed-Size: $(INSTALLEDSIZE)\n\
Depends: vim | vim-gtk | vim-gnome, tmux (>= 1.8), ncurses-term, vim-addon-manager, r-base-core\n\
Suggests: wmctrl, latexmk\n\
Enhances: vim\n\
Section: text\n\
Priority: extra\n\
Homepage: http://www.vim.org/scripts/script.php?script_id=2628\n\
Description: Plugin to work with R\n\
This filetype plugin has the following main features:\n\
- Start/Close R.\n\
- Send lines, selection, paragraphs, functions, blocks, entire file.\n\
- Send commands with the object under cursor as argument:\n\
help, args, plot, print, str, summary, example, names.\n\
- Support for editing Rnoweb files.\n\
- Omni completion (auto-completion) for R objects.\n\
- Ability to see R documentation in a Vim buffer.\n\
- Object Browser." > /tmp/vim-r-plugin-tmp/DEBIAN/control
# Create the md5sum file
(cd /tmp/vim-r-plugin-tmp/ ;\
find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums )
# Create the posinst and postrm scripts
echo '#!/bin/sh\n\
set -e\n\
\n\
helpztags /usr/share/vim/addons/doc\n\
\n\
exit 0\n\
' > /tmp/vim-r-plugin-tmp/DEBIAN/postinst
echo '#!/bin/sh\n\
set -e\n\
\n\
helpztags /usr/share/vim/addons/doc\n\
\n\
exit 0\n\
' > /tmp/vim-r-plugin-tmp/DEBIAN/postrm
# Fix permissions
(cd /tmp/vim-r-plugin-tmp ;\
chmod g-w -R * ;\
chmod +x DEBIAN/postinst DEBIAN/postrm )
# Build the Debian package
( cd /tmp ;\
fakeroot dpkg-deb -b vim-r-plugin-tmp vim-r-plugin_$(PLUGINVERSION)-1_all.deb )

htmldoc:
vim -c ":helptags ~/src/Vim-R-plugin/doc" -c ":quit" ;\
(cd doc ;\
$(VIM2HTML) tags r-plugin.txt ;\
sed -i -e 's/<code class.*gmail.com.*code>//' r-plugin.html ;\
sed -i -e 's/|<a href=/<a href=/g' r-plugin.html ;\
sed -i -e 's/<\/a>|/<\/a>/g' r-plugin.html ;\
sed -i -e 's/|<code /<code /g' r-plugin.html ;\
sed -i -e 's/<\/code>|/<\/code>/g' r-plugin.html ;\
sed -i -e 's/&term/\&amp;term/g' r-plugin.html ;\
sed -i -e 's/`//g' r-plugin.html ;\
sed -i -e 's/\( *\)\(http\S*\)/\1<a href="\2">\2<\/a>/' r-plugin.html ;\
sed -i -e 's/<\/pre><hr><pre>/ --------------------------------------------------------\n/' r-plugin.html ;\
mv r-plugin.html vim-stylesheet.css /tmp )

all: vimball deb htmldoc

98 changes: 0 additions & 98 deletions README

This file was deleted.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Vim-R-plugin - DO NOT INSTALL THIS PLUGIN

This plugin is no longer being maintained. It was superseded by
[Nvim-R](https://github.com/jalvesaq/Nvim-R).

97 changes: 97 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Copyright (c) 2009 Travis Jeffery <github:travisjeffery>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.

# Contributions by scrooloose <github:scrooloose>

require 'rake'
require 'find'
require 'pathname'

IGNORE = [/\.gitignore$/, /Rakefile$/]

files = `git ls-files`.split("\n")
files.reject! { |f| IGNORE.any? { |re| f.match(re) } }

desc 'Zip up the project files'
task :zip do
zip_name = File.basename(File.dirname(__FILE__))
zip_name.gsub!(/ /, '_')
zip_name = "#{zip_name}.zip"

if File.exist?(zip_name)
abort("Zip file #{zip_name} already exists. Remove it first.")
end

puts "Creating zip file: #{zip_name}"
system("zip #{zip_name} #{files.join(" ")}")
end

desc 'Install plugin and documentation'
task :install do
vimfiles = if ENV['VIMFILES']
ENV['VIMFILES']
elsif RUBY_PLATFORM =~ /(win|w)32$/
File.expand_path("~/vimfiles")
else
File.expand_path("~/.vim")
end
files.each do |file|
target_file = File.join(vimfiles, file)
FileUtils.mkdir_p File.dirname(target_file)
FileUtils.cp file, target_file

puts "Installed #{file} to #{target_file}"
end

end

desc 'Pulls from origin'
task :pull do
puts "Updating local repo..."
system("cd " << Dir.new(File.dirname(__FILE__)).path << " && git pull")
end

desc 'Calls pull task and then install task'
task :update => ['pull', 'install'] do
puts "Update of vim script complete."
end

desc 'Uninstall plugin and documentation'
task :uninstall do
vimfiles = if ENV['VIMFILES']
ENV['VIMFILES']
elsif RUBY_PLATFORM =~ /(win|w)32$/
File.expand_path("~/vimfiles")
else
File.expand_path("~/.vim")
end
files.each do |file|
target_file = File.join(vimfiles, file)
FileUtils.rm target_file

puts "Uninstalled #{target_file}"
end

end

task :default => ['update']
Loading