diff options
Diffstat (limited to '.vim/after')
-rw-r--r-- | .vim/after/plugin/minpac.vim | 1 | ||||
-rw-r--r-- | .vim/after/plugin/slime.vim | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim index 4cf5921..3435629 100644 --- a/.vim/after/plugin/minpac.vim +++ b/.vim/after/plugin/minpac.vim @@ -50,6 +50,7 @@ function! InitMinpac() abort call minpac#add('https://github.com/tpope/vim-fugitive.git') call minpac#add('https://github.com/rbong/vim-flog.git') call minpac#add('https://github.com/iberianpig/tig-explorer.vim') + call minpac#add('https://github.com/jpalardy/vim-slime', {'type': 'opt'}) " appearance call minpac#add('https://github.com/joshdick/onedark.vim.git', {'type': 'opt'}) diff --git a/.vim/after/plugin/slime.vim b/.vim/after/plugin/slime.vim new file mode 100644 index 0000000..3a48656 --- /dev/null +++ b/.vim/after/plugin/slime.vim @@ -0,0 +1,12 @@ +let g:slime_no_mappings = 1 + +xmap <leader>gz <Plug>SlimeRegionSend +nmap <leader>gz <Plug>SlimeLineSend + +let g:slime_target = 'vimterminal' +let g:slime_vimterminal_config = + \{'term_finish': 'close'} + +autocmd FileType python let g:slime_vimterminal_cmd = 'python3' + +packadd vim-slime |