Permalink
Browse files

Fixed up the EDITOR in zshrc. Got rid of JAVA_HOME in zshrc. Changed …

…colors of Java files in dircolors - I code in Java now and seeing red makes me see red. Fixed up the vim interaction plugin so that it now properly returns to NORMAL mode before trying to do anything
  • Loading branch information...
derekwyatt committed Aug 24, 2012
1 parent dc05fce commit f12cd7760f86f868908dab80fd48439023b212fc
Showing with 7 additions and 7 deletions.
  1. +2 −2 dircolors
  2. +4 −3 zsh_custom/plugins/vim-interaction/vim-interaction.plugin.zsh
  3. +1 −2 zshrc
View
@@ -202,8 +202,8 @@ EXEC 00;32
.C 00;37;44
.cc 00;37;44
.cpp 00;37;44
-.scala 00;37;44
-.java 00;33;41
+.scala 00;33;44
+.java 00;37;44
.h 00;33;41
.H 00;33;41
.hh 00;33;41
@@ -30,14 +30,15 @@ EOH
fi
local cmd=""
- local before="<esc>"
+ local toNormal="<c-\\><c-n>"
+ local before=""
local after=""
while getopts ":b:a:" option
do
case $option in
a) after="$OPTARG"
;;
- b) before="$OPTARG"
+ b) before="$before$OPTARG"
;;
esac
done
@@ -56,7 +57,7 @@ EOH
if [[ -n $files ]]; then
files=':args! '"$files<cr>"
fi
- cmd="$before$files$after"
+ cmd="$toNormal$before$files$after"
gvim --remote-send "$cmd"
if typeset -f postCallVim > /dev/null; then
postCallVim
View
3 zshrc
@@ -48,8 +48,7 @@ fi
export GPGKEY=B2F6D883
export GPG_TTY=$(tty)
-export EDITOR=/usr/local/bin/vim
-export JAVA_HOME=/usr/local/jdk
+export EDITOR=vim
if which dircolors > /dev/null; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"

0 comments on commit f12cd77

Please sign in to comment.