Excerpts from Steve liu's message of Tue Nov 08 13:51:36 +0100 2011:
> firstly I want to direct stdout to buffer and then get it in text. but
> failed.

redirect command and error to file
!command > file 2>&1

read file:

:r file

However then you can also use system, piping etc.

To understand the printf issue do:

:e NEW_FILE (Yes, I want you to open a buffer which is named NEW_FILE
sot hat you recognize this word easily)

Then try all of these:

:.!echo "%s\n" 'hello world'
:.!echo "%:ps\n" 'hello world'
:.!echo "\%s\n" 'hello world'
:.!echo "\s\n" 'hello world'

echo is just as printf. But it echoes arguments only - it doesn't
process them.

Now it you should understand what you're still doing wrong.

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

Reply via email to