RedirCommands : plugin for redirecting command output
| script karma
Downloaded by 456
Comments, bugs, improvements
script versions (upload new version)
|The Vim command redir is very powerful. It allows you to process the output of commands in whatever way you desire, but it is cumbersome to use. The RedirCommands pulgin gives you all of the power without the trouble.
Run command and redirect output to a split window.
:R function NERDComment
:R python print '\n'.join([str(x**2) for x in xrange(100)])
:RR <command> <destination>
Run command and redirect output to a destination. Destination can be a
register, global variable, or file. The destination string must not contain
:RR highlight Comment @a
:RR highlight Comment =>g:hi_comment
:RR highlight Comment >hi_comment.txt
The command used to redirect output to a split window. The default is 'R'.
The command used to redirect output to a specified destination. The default is 'RR'.
|Extract the plugin files in your ~/.vim (*nix) or ~/vimfiles (Windows). You
should have 2 files:
Next, to finish installing the help file run:
Alternatively, and arguably preferably, use Pathogen and checkout the
vim-redircommands directory in your bundle directory. Then, run:
Click on the package to download.
ip used for rating: 22.214.171.124