vim-settings/vim/ftdetect/python.vim

23 lines
501 B
VimL
Raw Permalink Normal View History

2015-10-26 17:25:25 +00:00
if has('nvim')
au VimEnter,BufRead,BufNewFile *.py
\ if executable('ipython') |
\ call neoterm#repl#set('ipython') |
\ endif |
\ if executable('pytest') |
\ call neoterm#test#libs#add('pytest') |
\ endif
command! Tox :T tox<CR>
endif
2015-08-17 23:37:29 +00:00
let g:neomake_python_pytest_maker = {
\ 'exe': 'py.test',
\ 'errorformat': &errorformat,
\ }
let g:neomake_python_tox_maker = {
\ 'exe': 'tox',
\ 'errorformat': &errorformat,
\ }