Added editrc/inputrc for vimification of mysql/irb command line tools

This commit is contained in:
yan 2012-05-18 14:08:46 -07:00
parent f9db81c0ed
commit cfe89df184
5 changed files with 10 additions and 0 deletions

View File

@ -244,6 +244,10 @@ your `~/.secrets` file which is automatically referenced by the provided zshrc:
A .gemrc is included. Never again type `gem install whatever --no-ri --no-rdoc`. `--no-ri --no-rdoc` is done by default.
## Vimization of everything
The provided inputrc and editrc will turn your various command line tools like mysql and irb into vim prompts. There's
also an included Ctrl-R reverse history search feature in editrc, very useful in irb.
## Vim Configuration

View File

@ -14,6 +14,7 @@ task :install => [:submodules] do
linkables += Dir.glob('git/*') if want_to_install?('git')
linkables += Dir.glob('irb/*') if want_to_install?('irb/pry')
linkables += Dir.glob('ruby/*') if want_to_install?('ruby (gems)')
linkables += Dir.glob('vimify/*') if want_to_install?('vimification of mysql/irb/command line')
linkables += Dir.glob('{vim,vimrc}') if want_to_install?('vim')
linkables += Dir.glob('zsh/zshrc') if want_to_install?('zsh')
Rake::Task['zsh_themes'].invoke

3
vimify/editrc Normal file
View File

@ -0,0 +1,3 @@
bind -v
bind "^R" em-inc-search-prev
bind \\t rl_complete

View File

@ -102,6 +102,7 @@ alias gz='tar -zcvf'
alias c='script/console --irb=pry'
alias ts='thin start'
alias ms='mongrel_rails start'
alias tfdl='tail -f log/development.log'
# Vim/ctags "mctags = make ctags", using the ruby specific version
# to save some time
@ -118,3 +119,4 @@ alias sgi='sudo gem install --no-ri --no-rdoc'
# to find the note called 'todo'
alias todo='open nvalt://find/todo'