I've started learning Rust, and have been setting up my Vim workflow to use it. I'm still relatively new to Vim, and mostly what I've written in it is PHP for a website. Now that I'm working with a language where the code is compiled and run, I'm keen to try using the Vim command output, especially while I'm learning and just writing simple programs.
I've added a keybinding so that
<C-Enter> runs the command
w | !cargo run, saving my current file, then building and running the project with
cargo. The command works just fine, but the output isn't quite as easy to read as using a terminal, because I lose the colours that denote errors, warnings, help, etc.
Is there a way to get these colours to show up in the (g)vim command output, to make it as nice to read as from the terminal?