Tuesday, June 1, 2010

Insert stdout of shell command on current line

Execute the current line (minus the leading "#") as a shell
command and insert its output at +1, keeping the current line in
place.

Yp:.!sed 's/^\#//' | sh

Is there a simpler way to do that ? Like a built-in command ?

--
André Majorel http://www.teaser.fr/~amajorel/

--
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

No comments:

Post a Comment