Skip to content
Browse files

use set-buffer/paste-buffer instead of send-keys

allows for better transport, in particular utf-8 (issue #11)
  • Loading branch information...
1 parent 9d4a977 commit af0c3d49c7ac678cec9dae0a3a23cf5b00e3dd7c @jpalardy jpalardy committed Mar 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugin/slime.vim
View
3 plugin/slime.vim
@@ -56,7 +56,8 @@ endfunction
function! s:TmuxSend(config, text)
let escaped_text = s:_EscapeText(a:text)
- call system("tmux -L " . a:config["socket_name"] . " send-keys -t" . a:config["target_pane"] . " " . escaped_text)
+ call system("tmux -L " . a:config["socket_name"] . " set-buffer " . escaped_text)
+ call system("tmux -L " . a:config["socket_name"] . " paste-buffer -t " . a:config["target_pane"])
endfunction
function! s:TmuxConfig()

0 comments on commit af0c3d4

Please sign in to comment.
Something went wrong with that request. Please try again.