On Tue, Feb 05, 2013 at 08:45:10AM -0800, Josef Montag wrote:
> Hi all,
> I have started using Ubuntu and try to figure out ways and tools for
> a simple script. I use Vim to write code for R and need a script
> that takes a selection in Vim and sends it to R and have this script
> attached to a key combination. I'm not sure whether this could all
> be done in Vimscript or I should look elsewhere.
the simplest way to filter text through an external filter is to
execute:
:[range]!{scriptname}
where {scriptname} is written to receive its input on sysin -- all of
[range] in your text will be replaced with the output from
{scriptname}
this gives you the flexibility to write {scriptname} in whatever
language pleases you, as fancy or as simple as need requires
sc
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Wednesday, February 6, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment