VimsCode/vim-conf/vimscode.sh

15 lines
398 B
Bash
Raw Normal View History

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