More python stuff

This commit is contained in:
ViViDboarder 2015-08-17 16:37:29 -07:00
parent 179ccc8e96
commit ff3b206718
2 changed files with 24 additions and 0 deletions

19
vim/ftdetect/python.vim Normal file
View File

@ -0,0 +1,19 @@
au VimEnter,BufRead,BufNewFile *.py
\ if executable('ipython') |
\ call neoterm#repl#set('ipython') |
\ endif |
\ if executable('pytest') |
\ call neoterm#test#libs#add('pytest') |
\ endif
let g:neomake_python_pytest_maker = {
\ 'exe': 'py.test',
\ 'errorformat': &errorformat,
\ }
let g:neomake_python_tox_maker = {
\ 'exe': 'tox',
\ 'errorformat': &errorformat,
\ }

View File

@ -170,6 +170,11 @@ Plug 'tmux-plugins/vim-tmux'
" Python {{ " Python {{
Plug 'alfredodeza/coveragepy.vim' Plug 'alfredodeza/coveragepy.vim'
Plug 'alfredodeza/pytest.vim' Plug 'alfredodeza/pytest.vim'
" pytest.vim {{
nmap <silent><leader>ptp <Esc>:Pytest project<CR>
nmap <silent><leader>ptf <Esc>:Pytest file<CR>
nmap <silent><leader>ptm <Esc>:Pytest method<CR>
" }} pytest.vim
Plug 'davidhalter/jedi-vim' Plug 'davidhalter/jedi-vim'
" jedi-vim {{ " jedi-vim {{
let g:jedi#completions_enabled = 0 let g:jedi#completions_enabled = 0