Originally Posted by
bgc
Hi! Thanks for the plugin! Everything works fine as far as I can tell! Look forward to further progress, but so far happy with being able to use vim with R with very few issues indeed!
You are welcome! And, please, tell me if you have any idea of how to improve the plugin.
My TODO list is almost empty. I have to fix a small bug in code indentation and I could add a few more options like all vim buffers using the same pipe file and avoiding omni completion of zero length strings, but perhaps nobody needs these options.
The only improvement that I've made in my configuration that might be worth noting was the use of less as the default pager. I've created and made executable the file ~/bin/rpager with the following content:
Code:
#!/bin/sh
RHELPFILE="/tmp/R-help-$USER"
cat > $RHELPFILE
XTT=`head -n 1 $RHELPFILE | awk '{print $1}'`
xterm -T "$XTT - R Help" -e less $RHELPFILE &
Then, I put in my .Rprofile:
Code:
if (interactive()) {
local({
options(editor='gvim -f -c "set ft=r"')
options(pager="~/bin/rpager")
})
}
Now, the help system is usable even without calling 'help.start()'.
Bookmarks