aboutsummaryrefslogtreecommitdiff
path: root/bin/vic.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/vic.sh')
-rw-r--r--bin/vic.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/vic.sh b/bin/vic.sh
new file mode 100644
index 00000000..c1967ef1
--- /dev/null
+++ b/bin/vic.sh
@@ -0,0 +1,6 @@
+# If the system vi is Vim, start it with -C for 'compatible'
+ver=$(vim --version 2>/dev/null | awk '{print $1;exit}')
+case $ver in
+ (VIM) vim -C "$@" ;;
+ (*) vi "$@" ;;
+esac