Josef Montag wrote: > 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.
An example using Python is here: http://vim.wikia.com/wiki/Use_filter_commands_to_process_text To make a mapping of the command in the example, you could do: :vnoremap <F8> !python sortwords.py<CR> John -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.