aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/slime.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-03 19:17:05 +0800
committerGuangxiong Lin <[email protected]>2022-04-03 19:19:12 +0800
commit2b4aff213c914c02f89a26bbbdd6d0bd8c63b027 (patch)
treeff7719ffe58b2f5d670177b0c808d9650d56ee31 /.vim/after/plugin/slime.vim
parentd9dcd9e1fcf86716fc3a06d0e41d2df2dba695cb (diff)
downloaddotfiles-2b4aff213c914c02f89a26bbbdd6d0bd8c63b027.tar.gz
dotfiles-2b4aff213c914c02f89a26bbbdd6d0bd8c63b027.tar.bz2
dotfiles-2b4aff213c914c02f89a26bbbdd6d0bd8c63b027.zip
Add vim-slime
Diffstat (limited to '.vim/after/plugin/slime.vim')
-rw-r--r--.vim/after/plugin/slime.vim12
1 files changed, 12 insertions, 0 deletions
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