A tiny vim plugin that sends a word/line/paragraph of text from vim into a tmux pane for execution.
git clone https://mcol.xyz/code/tide
Log | Files | Refs | README | LICENSE

commit 0ab49629f22e96f3a06f04d4db96bbcc99018624
parent e1136b422dcce741aff8cc23e2789be9e08427ca
Author: mcol <mcol@posteo.net>
Date:   Sun,  9 Dec 2018 11:30:16 +0000

escape dollar sign to stop expansion of variables before being input to tmux

Diffstat:
Mplugin/tide.vim | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/plugin/tide.vim b/plugin/tide.vim @@ -15,6 +15,7 @@ function! TmuxSendKeys(keys) let l:keys = substitute(l:keys, '\', '\\\\', 'g') "escape backslashes let l:keys = substitute(l:keys, '\"', '\\\"', 'g') "escape double quotes let l:keys = substitute(l:keys, '!', '\!', 'g') "escape esclamation mark + let l:keys = substitute(l:keys, '\$', '\\\$', 'g') "escape dollar sign call system(g:tmux_cmd . "-l \"" . l:keys . "\"") endfunction function! s:TmuxSendEnter()