I still feel somewhat helpless.
I asked you for phrasing the task using english words by purpose.
Does this describe what you're trying to do:
'pipe current line to external command
replacing current line by its output.'
?
Then .!printf "\s\n" 'hello world'
is close. Now all I have to tell you is that % is special: Vim
substitutes it by the buffer name. Thus escape it by \ and you're done
or use <c-r>=system('your shell command')<cr> in insert mode.
No reread your first mail. Try to understand why I wasn't able to sent
you this small solution the first time. We'll all perform better then.
Sincerly
Marc Weber
--
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