From ac079c48b3958a8c8f0936249fe1f9e438ebfc94 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 2 Nov 2020 18:06:59 +0100 Subject: [PATCH] Set slime tmux defaults --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 1ba6d68..e0f3e24 100644 --- a/.vimrc +++ b/.vimrc @@ -227,7 +227,8 @@ let g:hardtime_maxcount = 4 " Plugin: vim-slime -let g:slime_default_config={'socket_name': 'default', 'target_pane': '{right-of}'} +let g:slime_default_config={"socket_name": get(split($TMUX, ","), 0), "target_pane": '{last}'} +let g:slime_dont_ask_default = 1 let g:slime_paste_file=tempname() let g:slime_target='tmux' let g:slime_no_mappings = 1