I'm new to vim and apologize if the question seems redundant, but I couldn't find a suitable answer.
I have a shell script
compile.sh that I would like to run each time I press some key (say, F8) on my
vim, but I want this keybinding to be specific to my projects since other projects don't necessarily have that shell script.
Alternative solution would be to just hardcode
if statements on my shell script with the path of my project, but I'm wondering if there are other ways by rewriting
Edit: here's my
cd ~/projects/lnxdbg/ cmake -DCMAKE_C_COMPILER=$(which clang) -DCMAKE_CXX_COMPILER=$(which clang++) -S . -B build/ cd build/ make