Closed TornaxO7 closed 3 years ago
Hello! I have this mapping:
nnoremap <leader>gd :AsyncRun gcc % <bar> :AsyncRun -raw -cwd=$(VIM_FILEDIR) ./a.out<CR>
When I'm running this shortcut, than it returns this error message:
|| [gcc Test3.c | :AsyncRun -raw -cwd=/my/path ./a.out] zsh|1| command not found: :AsyncRun || [Finished in 0 seconds with code 127]
How can I compile and run the file afterwards?
nnoremap <leader>gd :AsyncRun -raw -cwd=$(VIM_FILEDIR) gcc % && ./a.out<CR>
Dayum. Haha I forgot that this "option" && exists xD Thank you!
&&
Hello! I have this mapping:
When I'm running this shortcut, than it returns this error message:
How can I compile and run the file afterwards?