RubyGems Navigation menu

vimdo 1.2.1

Vimdo is a ruby gem to automate tasks with vim remote servers. Predefined tasks include diff, merge, etc. You can define your own recipes to run tasks with Vim. For example, you can define `DirDiff` recipe: ```ruby module VimDo class CLI < Thor desc "dirdiff", "directory diff in vim" def dirdiff(from, to) [from, to].each do |f| unless File.directory?(f) raise PathError "#{f} is not directory!" end end from, to = [from, to].map {|f| File.expand_path(f) } commands(%Q{exec 'DirDiff ' fnameescape("#{from}") fnameescape("#{to}")}) end end end ``` Then run `vimdo dirdiff path/to/a path/to/b` from the command line or other tools

Versions:

  1. 1.2.1 - October 29, 2013 (15.5 KB)
  2. 1.2.0 - April 21, 2013 (15.5 KB)
  3. 1.1.1 - April 19, 2013 (15.5 KB)
  4. 1.1.0 - April 7, 2013 (11 KB)
  5. 1.0.2 - April 7, 2013 (10 KB)

Authors:

  • Zhao Cai

Owners:

C0ab877b31d463449e150b1b0048b274

SHA 256 checksum:

54aa335f639db8b1c8abb43e581bd6bf5a664f138f14554527c71f88a358804c

Total downloads 5,207

For this version 1,128

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

GPL-3

Required Ruby Version: None

Links: