Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating

  • Loading branch information...
commit f914302a9719de2c738e160a3d2a8bc31e8c75ad 1 parent 14ab108
@ashgti authored
View
24 _inputrc
@@ -6,10 +6,32 @@ set show-all-if-ambiguous on
set show-all-if-unmodified on
set visible-stats on
-set editing-mode emacs
+set editing-mode vi
+set keymap vi
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+"\e[3~": delete-char
+"\e[2~": quoted-insert
+"\e[5C": forward-word
+"\e[5D": backward-word
+"\e\e[C": forward-word
+"\e\e[D": backward-word
+
+$if mode=vi
+ set keymap vi-command
+ "gg": beginning-of-history
+ "G": end-of-history
+ set keymap vi-insert #notice how the "jj" movement is
+ "jj": vi-movement-mode #after 'set keymap vi-insert'?
+ "\C-w": backward-kill-word
+ "\C-p": history-search-backward
+$endif
+
View
4 _paths
@@ -2,7 +2,7 @@
# Customize to your needs...
# Basic path
-export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/Users/john/Projects/local/bin"
+export PATH="/usr/bin:/usr/local/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/Users/john/Projects/local/bin"
if [[ -d "$HOME/perl5/perlbrew/bin" ]]; then
export PATH="/Users/john/perl5/perlbrew/bin:/Users/john/perl5/perlbrew/perls/perl-5.14.2/bin:$PATH"
@@ -12,7 +12,7 @@ fi
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/:/usr/local/share/pkgconfig:$PKG_CONFIG_PATH"
# Python Path
-export PYTHONPATH="/usr/local/lib/python:/usr/local/lib/python2.7/site-packages:/Users/harjohn/Perforce/lib/python:$PYTHONPATH"
+export PYTHONPATH="/Users/harjohn/Perforce/lib/python:/usr/local/lib/python:/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
# RVM Path
if [[ -d $HOME/.rvm/bin ]]; then
2  _vim/bundle/command-t
@@ -1 +1 @@
-Subproject commit 67e39768ea3a0a01eabcb511e47530558a4534de
+Subproject commit 7a66ce832a1a273a77f15611ff42e33cce98ee41
2  _vim/bundle/delimitMate
@@ -1 +1 @@
-Subproject commit 1dfe26a5385de33cd7d9a0175c4fa89defd88386
+Subproject commit 0b34aea202daee0a3e85ce948bc9c9f8082f1899
2  _vim/bundle/fugitive
@@ -1 +1 @@
-Subproject commit 49c6be334c0b7950c837bd9f69c30c9f5ccd2e97
+Subproject commit 4f7af188fec24330e7dff99c8758588ae9780347
2  _vim/bundle/git
@@ -1 +1 @@
-Subproject commit 3d31cb0cc9470d57adf36cc3224814ccb0293cc9
+Subproject commit 191535e27bf4ff6c7c2757522c361c78891a3078
2  _vim/bundle/gundo
@@ -1 +1 @@
-Subproject commit 4c376a8061fa335228da420937ce385b847dd56a
+Subproject commit 7198c51b5d2b145b5ca4899fda8397e7f68efa77
2  _vim/bundle/py.test
@@ -1 +1 @@
-Subproject commit c51c9e5cd57b976d5a6b6907ca690106c345159f
+Subproject commit c8465ff4a7d4ae1f7b029318d73628112c39016d
2  _vim/bundle/supertab
@@ -1 +1 @@
-Subproject commit 6e1d7c39a8e9545b6f2d44dfff81a5d77efad6c8
+Subproject commit 5a38ce8b600e11941f695523363fe04e6478549a
2  _vim/bundle/surround
@@ -1 +1 @@
-Subproject commit 1a73f607f8f5477d6942df2eb6e7245c4864f4d3
+Subproject commit 489a1e8c676ad47dd358dbf883bfaf492148d38b
2  _vim/bundle/voom
@@ -1 +1 @@
-Subproject commit 4e683a1f5a2e06c70ee4806faf3000e9386b3271
+Subproject commit 051df6d60f075357dc03b119658d7a4ec1f98e06
2  _vim/bundle/yankring
@@ -1 +1 @@
-Subproject commit 8ebc225b364887c0557ab47ab2ca752a70123bee
+Subproject commit e42cac0d8d84be5602109f4e614caa0854470fc1
2  _vim/colors
@@ -1 +1 @@
-Subproject commit 4e56f4b4ad4d50c1c97a14337a596ed0688d5cea
+Subproject commit dd14443f95f0500f9e6e8b8bd51073509201a55a
View
10 _zshrc
@@ -39,8 +39,6 @@ zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
zstyle ':completion:*' tag-order '! users' -
-bindkey '^r' history-incremental-search-backward
-
setopt auto_cd # Type 'dir' instead of 'cd dir'
setopt autopushd # cd acts like pushd
setopt pushdminus # Swap cd +1 and cd -1
@@ -53,3 +51,11 @@ export ROS_OS_OVERRIDE=osxbrew:lion
export EDITOR="vim"
source ~/.profile
+source ~/.rvm/scripts/rvm
+
+# Keybindings
+#
+bindkey -M viins 'jj' vi-cmd-mode
+
+# Reverse history lookup with Ctrl-r
+bindkey '^r' history-incremental-search-backward
Please sign in to comment.
Something went wrong with that request. Please try again.