From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: Getting the output of some commands into a buffer Date: Wed, 27 Sep 2006 05:40:41 +0200
> Meino Christian Cramer wrote: > > Hi, > > > > there are several commands like > > > > :map > > > > or > > > > :version > > > > which put a lot of valuable informations (at least for a newbie like > > me) into a temporary "something" ("buffer" seems the wrong nameing to > > me here). > > > > I would like to get the output of those commands into a real buffer > > and become non non-volatile text. > > > > An very very ugly way is to start > > > > script typescript > > > > start the console version of > > > > vim > > > > enter > > > > :map<cr> > > :q<cr> > > > > press Ctrl-D to end script and try to re-edit the typescript > > file. But this is *VERY* ugly not only due to the thousands of > > control-codes. > > > > Is there any other cleaner and vim-internal way to do this ? > > > > Keep hacking! > > mcc > > > > > > > > > > You can get the output of any such command into either a file or a register, > and in Vim version 7 (or later ;-) ) you can also get it into a variable. > > See ":help :redir" > > > Best regards, > Tony. > Hi Tony, thanks a lot. That helps! :) Keep hacking! mcc