Sha256: 6fff1e1e95555a4b4e62a4ba9da6a75d3fd286c0100d0b61c61cb8a66c8e84e2

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

# RobotVim - Easy Vim Automation
RobotVim is a Ruby gem that allows you to invoke Vim from inside of Ruby
programs.  It was designed to allow Vim developers to TDD/BDD their Vim plugins
and scripts.

## Installation
To install RobotVim run
    gem install robot-vim
or clone this reposity and run
    rake install


## Dependencies
RobotVim is developed with Vim 7.3, Ruby 1.9.2, and bundler.


## Example Usage

### Initialization
Create an instance that will use your user's default Vim
    robot = RobotVim::Runner.new()

Or create an instance with a specific Vim
    robot = RobotVim::Runner.new(:vim => "/bin/vim")

### Running commands
Commands are passed in as a string with one command per line.

    commands = <<-COMMANDS
      RunSomeCoolCommand
      SomeOtherCoolCommand
    COMMANDS

    robot.run(:input_file => "some/file.txt", :commands => commands)

See spec/integration\_spec.rb for an example of sorting a file and saving the output.


## TODO
- automatically save buffer to an output file after running the last command
- automatically close Vim after running the last command
- take a string for input and write out a temporary file that Vim will run against
- figure out if there is a way to specify a .vimrc file without disabling the normal Vim initialization process

## Author
RobotVim is developed by Matt Margolis | mrmargolis | matt@mattmargolis.net

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
robot-vim-0.1.1 README.md
robot-vim-0.1.0 README.md