A vim plugin to run Rust main function and unit tests within the file.
- Clone the repository
- Copy the directory [comvimed-rust] into
~/.vim/plugged/
You can actually customize the Keymaps inside the plugin folder. The default reads:
nnoremap <silent> <leader>r :call comvimed#RunRust()<CR>
r to run the main function
nnoremap <silent> <leader>u :call comvimed#FunctSearch()<CR>
u to search for functions
nnoremap <silent> <leader>t :call comvimed#RunRustTests()<CR>
t to run test functions