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,020 of 183,107
Downloads: 14,414
Daily
Ranking: 86,038 of 183,092
Downloads: 0
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 | 953,844,246 | rake |
24 | 831,919,028 | thor |
157 | 236,990,525 | awesome_print |
210 | 167,990,555 | rdoc |
2,086 | 8,574,300 | hoe |
11,236 | 191,629 | hoe-git |
14,605 | 118,482 | hoe-gemspec |
26,104 | 48,050 | vimrunner |
61,525 | 15,208 | autocompletion |
63,136 | 14,699 | hoe-version |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zhaowu |