Tom Carr wrote:
I'm trying to pipe messages from ex commands (e.g. :map , :version) into a new
tab.
I've found http://vim.sourceforge.net/tips/tip.php?tip_id=95, but I was hoping
for a better way.
Ideally I would type something like :tabmesages :map and it would show :map
in a new tab,
On Mon, Sep 25, 2006 at 10:21:23PM +0100, Tom Carr wrote:
I'm trying to pipe messages from ex commands (e.g. :map , :version)
into a new tab.
I've found http://vim.sourceforge.net/tips/tip.php?tip_id=95, but I
was hoping for a better way.
Ideally I would type something like :tabmesages :map
Tom Carr wrote:
I'm trying to pipe messages from ex commands (e.g. :map , :version) into a new
tab.
I've found http://vim.sourceforge.net/tips/tip.php?tip_id=95, but I was hoping
for a better way.
Ideally I would type something like :tabmesages :map and it would show :map
in a new tab,
* Benji Fisher on Tuesday, September 26, 2006 at 09:53:32 -0400:
fun! TabMessage(cmd)
redir = message
silent execute a:cmd
redir END
tab split
put=message
endfun
In case one wishes to have /only/ the command output in the tab,
and no delay by messages:
function! TabMessage(cmd)
I'm trying to pipe messages from ex commands (e.g. :map , :version) into a new
tab.
I've found http://vim.sourceforge.net/tips/tip.php?tip_id=95, but I was hoping
for a better way.
Ideally I would type something like :tabmesages :map and it would show :map
in a new tab, without printing it