Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.349 kB
#!/bin/sh
editor=vi
# Must be checking at /usr/bin not /usr/local/bin
[ -x /usr/bin/vim ] && editor=vim
if [ "$TERM" = "screen" ]; then
/usr/bin/$editor "$@"
elif [ "$TERM" = "xterm" ]; then
/usr/bin/$editor "$@"
elif [ -n "$DISPLAY" ]; then
xterm -e /usr/bin/$editor "$@"
else
# change this to gvim
/usr/bin/$editor "$@"
fi
Jump to Line
Something went wrong with that request. Please try again.