http://vim.wikia.com/wiki/Capture_ex_command_output

replace the current file/buffer with the _output_ of that command,
using this:

:%! [cmd]


In the wiki page, I found this command is very useful. :-)

Best Regards,
  robert


On 5/20/10, robert song <[email protected]> wrote:
> thank you very much.
>
> That's what I need.
>
> Best Regards,
>   robert
>
>
> On 5/20/10, lessthanideal <[email protected]> wrote:
>> On May 20, 9:29 am, robert song <[email protected]> wrote:
>>> Hi, everyone.
>>>
>>> Sometimes I want to search for the result in the command-line mode.
>>>
>>> For example:
>>> :set all
>>>
>>> all the set option will be listed.
>>> But the result can't be searched.
>>>
>>> So is it able to redirect the result to another window ?
>>>
>>> Best Regards,
>>>   robert
>>
>> :help redir
>>
>> http://vim.wikia.com/wiki/Capture_ex_command_output
>>
>> This does something similar in a different way
>> http://vim.wikia.com/wiki/Redirect_g_search_output
>>
>> regards,
>> Geoff
>>
>> --
>> 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
>>
>

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