Files
q-tools/vim/vimd
Ville Rantanen 932e75cac7 more bsd attempts
2017-06-09 21:32:34 +03:00

17 lines
443 B
Bash
Executable File

#!/bin/bash
function helpexit() {
echo Edit a file with check list mod of vim.
echo "space toggles the box."
echo "Ctrl-b in editing mode inserts a checkbox."
echo All switches are passed on to vim.
exit
}
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
case $OSTYPE in
darwin*) LIB=$( dirname $( realpath $0 ) )/markdown.vim ;;
*) LIB=$( dirname $( readlink -f $0 ) )/markdown.vim ;;
esac
vim -S "$LIB" "$@"