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.

Reply via email to