> Hi, everyone.
>
> Now I used a workaround to solve the problem.
>
> I just added one function in the .vimrc file.
>
> function Info(cmd)
> execute "r!info --subnodes --output - ". a:cmd
> endfunction
> com -nargs=* Info call Info(<f-args>)
>
>
> :Info gcc
> All the gcc info will be outputted.
This seems to work nicely to do something I've wanted for a while.
I have to admit I don't quite see why it works. What's giving us
the new window rather than just dumping the info command output
into the current buffer as :r! says? This command by itself:
:execute "r!info --subnodes --output - gcc"
puts its output in the current buffer, what part of the function
and command wrapping layers is changing this?
Britton
>
> Best Regards,
> robert
>
> --
> 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
No comments:
Post a Comment