Live data from Hacker News

Turning Vim into an R IDE

medium.com

11–20 of 27 posts

Re: Turning Vim into an R IDE

#11
post #6

I wonder about the point of torturing a minimalist text editor with no graphics support (such as Vim into a comprehensive development and visualization enviromment, by invoking several plugins and some very specific workflows. Would it not make more sense to take the interface (modal editing, etc) and wrap it into module that can be easily embedded into several different IDEs, to handle text-specific tasks? That way,…

)

Re: Turning Vim into an R IDE

#13
post #6

I wonder about the point of torturing a minimalist text editor with no graphics support (such as Vim into a comprehensive development and visualization enviromment, by invoking several plugins and some very specific workflows. Would it not make more sense to take the interface (modal editing, etc) and wrap it into module that can be easily embedded into several different IDEs, to handle text-specific tasks? That way,…

Alternately, would it make sense in R to separate the code and the result instead of a WYSIWYG approach? This is how many work with tools like latex/pdf (among others), edit the source in vim and have a viewer window open next to it.

Re: Turning Vim into an R IDE

#14

As much as I love Vim and R, I think the experience is pointless without embedded graphs. It would be perfect if it was possible to view a graph in a Vim split.

This sounds like an excellent use case for withoutboat's[1] (aka tatterdemalion[2]) notty[3] terminal protocol project.

[1] https://github.com/withoutboats [2] https://news.ycombinator.com/user?id=tatterdemalion [1] https://github.com/withoutboats/notty

Re: Turning Vim into an R IDE

#15
So the suggestion is to use the nvim-r plugin. This plugin uses a custom R lib you have to compile yourself. This may not be possible in every situation. While this is a nice solution for your personal work station, it sometimes isn't in a corporate context.

Re: Turning Vim into an R IDE

#16
post #6

I wonder about the point of torturing a minimalist text editor with no graphics support (such as Vim into a comprehensive development and visualization enviromment, by invoking several plugins and some very specific workflows. Would it not make more sense to take the interface (modal editing, etc) and wrap it into module that can be easily embedded into several different IDEs, to handle text-specific tasks? That way,…

Oh come on, they're talking about interacting with R. I hope you're aware that R is a simple interpreter and any IDE for R is mostly a window manager that arrangs views on the source code, the REPL, and the graphic display if available. Also: vim isn't vi. Vim isn't minimalist

Re: Turning Vim into an R IDE

#17

This article suggest a variety of plugins and then describes a fairly exotic workflow that's alien to my vim brain. I use vim because it's simple, powerful and available almost anywhere. By the time I've installed a bunch of non-standard plugins and learned a set of tool-specific commands, I'm no longer working with vim but some other IDE-type-thing that happens to run inside vim.

They basically talk about one single plugin: nvim-r, without linking to its web page.

Re: Turning Vim into an R IDE

#18

As much as I love Vim and R, I think the experience is pointless without embedded graphs. It would be perfect if it was possible to view a graph in a Vim split.

If you want graphs, you're probably not working at the terminal anyway and you're most likely using gvim that integrates nicely with our desktop environment. You can display the R graphics next to the gvim window.

Re: Turning Vim into an R IDE

#20
post #9

> Why Not RStudio? > Yes, I know RStudio has Vim keybindings, but it isn’t the real thing. At this point, I’m ruined by Vim. I say the next step is that we have NeoVim running inside of RStudio. I also think we will have that happening in VSCode a mind bending text editor inside of a text editor.

https://github.com/Chillee/VSCodeNeovim
Post reply on HN