diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-18 11:35:54 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-18 11:35:54 +1200 |
commit | 9f7bebb200e3b67a5a3ae26bd2c6789a81f1a286 (patch) | |
tree | d2ba1b2243ed89b9b1fb91adf58ea68272e34499 /bin/vic.sh | |
parent | Continue faffing around with vimrc conditionals (diff) | |
download | dotfiles-9f7bebb200e3b67a5a3ae26bd2c6789a81f1a286.tar.gz dotfiles-9f7bebb200e3b67a5a3ae26bd2c6789a81f1a286.zip |
Add vic(1df)
Diffstat (limited to 'bin/vic.sh')
-rw-r--r-- | bin/vic.sh | 6 |
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 |