Files
q-tools/vim/vimansi
2017-07-07 16:17:29 +03:00

16 lines
353 B
Bash
Executable File

#!/bin/bash
function helpexit() {
echo Edit a file with ANSI editor mod of vim
echo All switches are passed on to vim.
exit
}
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
case $OSTYPE in
darwin*) LIB=$( dirname $( realpath $0 ) )/ansi.vim ;;
*) LIB=$( dirname $( readlink -f $0 ) )/ansi.vim ;;
esac
vim -S "$LIB" "$@"