Categories: None [Edit]
vimdo
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
Total
Ranking: 64,606 of 187,591
Downloads: 15,532
Daily
Ranking: 130,231 of 187,571
Downloads: 5
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,165,649,814 | rake |
| 25 | 991,612,233 | thor |
| 169 | 265,487,451 | awesome_print |
| 182 | 248,248,053 | rdoc |
| 2,297 | 8,987,679 | hoe |
| 11,899 | 201,778 | hoe-git |
| 15,393 | 122,998 | hoe-gemspec |
| 26,269 | 52,637 | vimrunner |
| 59,500 | 17,414 | autocompletion |
| 64,642 | 15,518 | hoe-version |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | zhaowu |