From 5dbae34bcee5d7ada2c5d8bcbfb9f1ce2e0f0d47 Mon Sep 17 00:00:00 2001 From: andre Date: Mon, 2 Nov 2009 10:01:32 +0000 Subject: [PATCH] Another try --- zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index f5b6edb..cce44d5 100644 --- a/zshrc +++ b/zshrc @@ -151,14 +151,15 @@ fi if [ `uname -s` = "Darwin" ]; then export LSCOLORS="GxgxcxdxCxegedabagacad" + # Function for Vim function vimFunc { if [ "x$SSH_CLIENT" = "x" ]; then - vim_args="mvim --servername VIM" + vim_args="`echo =mvim` --servername VIM" local_vim=1 else - vim_args="/usr/bin/vim" + vim_args="`echo =vim`" local_vim=0 fi @@ -174,6 +175,8 @@ if [ `uname -s` = "Darwin" ]; then `echo ${vim_args}` unset vim_args unset local_vim + echo $? + return 0 } # Alias for editors on OSX, a bit hard, to be fixed