Home

Awesome

vimux-cargo

Vint

Run cargo commands in vim and tmux using vimux.

Usage

This plugin currently assumes you have a module named tests in the current file and that modules are not nested.

Add something like this to your ~/.vimrc or inside ~/.vim/ftplugin/rust.vim if you want only use this mapping with files that have the rust filetype.

map <Leader>rc :wa<CR> :CargoRun<CR>
map <Leader>ra :wa<CR> :CargoTestAll<CR>
map <Leader>rb :wa<CR> :CargoUnitTestCurrentFile<CR>
map <Leader>rf :wa<CR> :CargoUnitTestFocused<CR>

Commands

See Also