Skip to content

Instantly share code, notes, and snippets.

@joshnuss
Last active August 29, 2015 14:02
Show Gist options
  • Save joshnuss/568b485f77995cd4eefe to your computer and use it in GitHub Desktop.
Save joshnuss/568b485f77995cd4eefe to your computer and use it in GitHub Desktop.
Running Elixir tests with vim
" put this .vimrc in your project's root folder
" type ,t to run all tests
map <Leader>t :!mix test<CR>
" type ,e to run current test
map <Leader>e :!mix test %<CR>
" add this somewhere in your ~/.vimrc
" this will load your project specific .vimrc (as long as you're not in your home dir)
if $HOME != $PWD && filereadable(".vimrc")
so .vimrc
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment