I usually work with php projects and phpunit. I've mapped
<leader>T thus I can run tests.
# my .vimrc file portion nnoremap <Leader>T :!vendor/bin/phpunit --filter function! RunFilteredTests() let l:filter = input('Filter test with ... ') exec ':!php ./bin/phpunit --filter ' . l:filter . "\<CR>" endfunction
Lately, I've started to play with
golang. Can I use same shortcut with different behavior depending on the current open file?