Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

vi style on the commandline \m/

  • Loading branch information...
commit dee74b22f0f952523b2a4d5ea1c07b64c281022f 1 parent d3062fa
Richard Gould authored

Showing 1 changed file with 16 additions and 1 deletion. Show diff stats Hide diff stats

  1. +16 1 home/.zshrc
17 home/.zshrc
@@ -25,6 +25,7 @@ export ZSH=$HOME/.oh-my-zsh
25 25 export ZSH_THEME="jreese"
26 26
27 27 export VISUAL="vim"
  28 +export EDITOR="vim"
28 29
29 30 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
30 31
@@ -39,7 +40,7 @@ export VISUAL="vim"
39 40
40 41 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
41 42 # Example format: plugins=(rails git textmate ruby lighthouse)
42   -plugins=(github git rails ruby)
  43 +plugins=(github git rails)
43 44
44 45 source $ZSH/oh-my-zsh.sh
45 46 source ~/.git-flow-completion.zsh
@@ -61,3 +62,17 @@ export REPORTTIME=5
61 62
62 63 eval `dircolors ~/.dircolors`
63 64
  65 +# Enable Ctrl-x-e to edit command line
  66 +autoload -U edit-command-line
  67 +# Emacs style
  68 +#zle -N edit-command-line
  69 +#bindkey '^xe' edit-command-line
  70 +#bindkey '^x^e' edit-command-line
  71 +# Vi style:
  72 +zle -N edit-command-line
  73 +bindkey -M vicmd v edit-command-line
  74 +bindkey '^E' edit-command-line # Opens Vim to edit current command line
  75 +bindkey '^R' history-incremental-search-backward # Perform backward search in command line history
  76 +bindkey '^S' history-incremental-search-forward # Perform forward search in command line history
  77 +bindkey '^P' history-search-backward # Go back/search in history (autocomplete)
  78 +bindkey '^N' history-search-forward # Go forward/search in history (autocomplete)

0 comments on commit dee74b2

Please sign in to comment.
Something went wrong with that request. Please try again.