aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-18 11:35:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-18 11:35:54 +1200
commit9f7bebb200e3b67a5a3ae26bd2c6789a81f1a286 (patch)
treed2ba1b2243ed89b9b1fb91adf58ea68272e34499 /bin
parentContinue faffing around with vimrc conditionals (diff)
downloaddotfiles-9f7bebb200e3b67a5a3ae26bd2c6789a81f1a286.tar.gz
dotfiles-9f7bebb200e3b67a5a3ae26bd2c6789a81f1a286.zip
Add vic(1df)
Diffstat (limited to 'bin')
-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