From 7221f876396468b120c1687bd92feb0b3f6e7577 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 26 Oct 2015 10:25:25 -0700 Subject: [PATCH] Neoterm stuff only for nvim --- vim/ftdetect/python.vim | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/vim/ftdetect/python.vim b/vim/ftdetect/python.vim index 2d70016..55a7cc9 100644 --- a/vim/ftdetect/python.vim +++ b/vim/ftdetect/python.vim @@ -1,10 +1,13 @@ -au VimEnter,BufRead,BufNewFile *.py - \ if executable('ipython') | - \ call neoterm#repl#set('ipython') | - \ endif | - \ if executable('pytest') | - \ call neoterm#test#libs#add('pytest') | - \ endif +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 +endif let g:neomake_python_pytest_maker = { \ 'exe': 'py.test',