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: 63,097 of 180,488
Downloads: 13,994
Daily
Ranking: 38,970 of 180,477
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 |
---|---|---|
16 | 855,188,240 | rake |
25 | 760,632,677 | thor |
146 | 219,420,323 | awesome_print |
214 | 146,816,794 | rdoc |
1,957 | 8,415,482 | hoe |
10,780 | 189,062 | hoe-git |
14,055 | 116,642 | hoe-gemspec |
25,687 | 46,279 | vimrunner |
60,513 | 14,801 | autocompletion |
61,937 | 14,362 | hoe-version |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zhaowu |