From cfe89df184d2abd4f71afee9492a4959d2f75595 Mon Sep 17 00:00:00 2001 From: yan Date: Fri, 18 May 2012 14:08:46 -0700 Subject: [PATCH] Added editrc/inputrc for vimification of mysql/irb command line tools --- README.md | 4 ++++ Rakefile | 1 + vimify/editrc | 3 +++ inputrc => vimify/inputrc | 0 zsh/aliases.zsh | 2 ++ 5 files changed, 10 insertions(+) create mode 100644 vimify/editrc rename inputrc => vimify/inputrc (100%) diff --git a/README.md b/README.md index d745946..b0e6560 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Rakefile b/Rakefile index 91b46f8..e187a14 100644 --- a/Rakefile +++ b/Rakefile @@ -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 diff --git a/vimify/editrc b/vimify/editrc new file mode 100644 index 0000000..75f23e7 --- /dev/null +++ b/vimify/editrc @@ -0,0 +1,3 @@ +bind -v +bind "^R" em-inc-search-prev +bind \\t rl_complete diff --git a/inputrc b/vimify/inputrc similarity index 100% rename from inputrc rename to vimify/inputrc diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index afea969..b3ba5e3 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -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' +