sponsor Vim development Vim logo Vim Book Ad

regRedir.vim : Vim plugin to redirect command output into a register

 script karma  Rating 3/3, Downloaded by 964  Comments, bugs, improvements  Vim wiki

created by
Guido Van Hoecke
 
script type
utility
 
description
" Description: This plugin defines a 'Redir' command that takes a register
" and one or more {bar} separated commands. This command will execute
" these commands and collect their output into the specified register.
" The resulting register could than be inserted anywhere with a :put
" The register must always be specified, and is the first character
" of the command argument. The remainder of the argument is the command
" to be captured. This command may be separated from the register with
" a space. Several commands can be specified, but have to be separated
" with a bar:
"
" :Redir {reg} {cmd} [ | {cmd} [ | {cmd} ... ] ]
"
" Examples:
" 1) Simple case of one command (e.g. :version) to be captured into
"    register v
"     :Redir vversion
" or
"     :Redir v version
" 2) Example of two commands (ls and set) to be collected into
" register p
"     :Redir p ls | set
" or
"     :Redir pls|set
" 3) Example of a command (g/exe) to be appended to register x
"     :Redir Xg/exe
" or
"     :Redir X g/exe
"
 
install details
" Installation: Just unzip and copy this file into your ~/vim/plugin
" or corresponding directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
regRedir.zip 1 2002-08-29 6.0 Guido Van Hoecke Initial upload
ip used for rating: 34.231.109.23

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github