I want to pipe the selected text to a shell command and receive the one-line output from this shell command on the vim info/command line?
What I\'m really trying to
Maybe you should use something like
:echo system('echo '.shellescape(@").' | YourCommand')
Starting from some vim-7.4 version it is better to use
:echo system('YourCommand', getreg('"', 1, 1))
. This is basically the only way to keep NUL bytes untouched should they be present in the file. Passing @"
in one or the other way will transform NUL bytes into NL (newline).