Daily Vim Devotional
repl

repl is a Ruby Gem that lets you make any command an interactive command. Just type repl something and it will start that program in it’s own interactive shell. This is great for commands where type a lot of subcommands or repeat an option. So:

smith@iNeXT:~/Projects/vim-config:!master$ repl git
git>> status
# On branch master
nothing to commit (working directory clean)
git>> branch
* master
  master (castor's conflicted copy 2011-05-09)
git>> diff
...
git>> commit
# On branch master
nothing to commit (working directory clean)
git>> log
...
git>> pull
Already up-to-date.
git>> ^D
smith@iNeXT:~/Projects/vim-config:master$ 

You get the idea. Not a Vim tip, but wonderful for many command line apps.

gem install repl https://github.com/defunkt/repl

blog comments powered by Disqus