VimsCode/vimscode.sh

15 lines
398 B
Bash
Raw Normal View History

2023-07-11 16:43:17 +02:00
#!/bin/bash
if [ "$1" = '-a' ] || [ "$1" = '-arduino' ] ; then
vim -p $2 ~/.vim/help/En/help-arduino
elif [ "$1" = '-e' ] || [ "$1" = '-esp' ] ; then
vim -p $2 ~/.vim/help/En/help-esp32
elif [ "$1" = '-p' ] || [ "$1" = '-platform.io' ] ; then
vim -p $2 ~/.vim/help/En/help-platform.io
elif [ "$1" = '' ] || [ "$1" = '' ] ; then
cat ~/.vim/help/help-vimscode
else
echo "Option $1 invalid"
fi