Hi Rod!
On Do, 26 Mai 2016, Rod Holcomb wrote:
> I have the following function in my .vimrc
>
>
> command! -nargs=+ -complete=command TabMessage call TabMessage(<q-args>)
> function! TabMessage(cmd)
> redir => message
> silent execute a:cmd
> redir END
> tabnew
> silent put=message
> set nomodified
> endfunction
>
>
>
> basically it redirect message to a new tab.
> however when I run
> :TabMessage g//
>
> tabs my buffer get stripped on there way to the new tab.
>
> Thoughts?
I think this happens by the redir function, which basically gets the
output from the screen and does not know, that the underlying message
has been using tabs.
Best,
Christian
--
Wer wünscht, daß man ihn fürchte, erreicht nur, daß man ihn haßt.
-- Charles-Louis de Montesquieu
--
--
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 because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment