Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.
Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.
”What’s 43 Folders?”
43Folders.com is Merlin Mann’s website about finding the time and attention to do your best creative work.
If you know Gvim/vim, please help!
very_desperate | May 17 2007
I have a very simple problem with Gvim which I need to figure out and qquite urgently. I spent some 4 hours reading the help and scripts and could not do it. I need a script which does a very simple thing: 1) take the current selection 2) feed it as command parameter to an application, say foo.exe 3) map it to a key, say f9 (i think I figured out the last part) What I want to do is : select "text", press f9, execute foo.exe text Sorry for posting this topic - I would not if I was not completely desperate. 1 Comment
POSTED IN:
This article (section "Filtering text...Submitted by mwr on May 17, 2007 - 7:23pm.
This article (section "Filtering text through external filters") indicates that you can feed a selection to a given command, but it might not be exactly what you wanted. First, the selection would be fed to the command's standard input instead of as command-line parameters. Second, the selection would be replaced with the printed output of the command. If you have control over the program, you can work around both of those differences. Exercise left to the reader and all. » POSTED IN:
|
|
EXPLORE 43Folders | THE GOOD STUFF |