diff --git a/.gitignore b/.gitignore index b39d943668607ddf423af86621258b9b76ee4390..c297eccbc947fa7ce9609961029a7308da2b7dbb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ .vim/swap .vim/undo .directory +**.mypy_cache/ +**tags-te diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index 6ea45cab0b0f14c663b2e946a14fd04541f33a5d..3dc65df4c7d810c3dc00176486a15fb512b1eee7 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -15,6 +15,7 @@ setlocal colorcolumn=80 let g:slime_target = "vimterminal" let g:slime_vimterminal_config = {"term_name":"REPL" , "vertical" : "1"} let g:slime_vimterminal_cmd = "ipython" +let g:slime_python_ipython = 1 " let g:slime_no_mappings = 1 xmap <leader>s <Plug>SlimeRegionSend @@ -23,6 +24,8 @@ nmap <leader>ss <Plug>SlimeLineSend nmap <f5> :w<cr>:SlimeSend0 "exec(open('" . expand('%:p') . "').read())\n"<CR> imap <f5> <esc>:w<cr>:SlimeSend0 "exec(open('" . expand('%:p') . "').read())\n"<CR> +nmap <s-f5> :%SlimeSend<CR> +imap <s-f5> <c-o>:%SlimeSend<CR> " imap <F5> <esc>:w<cr>:vert term python3 -i %<cr> " nmap <F5> :w<cr>:term python3 -i %<cr> " imap <F5> <esc>:w<cr>:term python3 %<cr>