A tiny vim plugin that sends a word/line/paragraph of text from vim into a tmux pane for execution.
git clone https://github.com/m-col/tide
Files | Refs | Readme | License

Commit 89cab0ef2c59599b308ecc1a9e60f7de582fcbb0
Parent: 81885b5fd56cf699a606597744a8862c672c0e27
Author: mcol <mcol@posteo.net>
Date: 2019-04-14 21:53:08 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2019-04-14 21:53:08 +0100

do not strip leading whitespace

plugin/tide.vim Modified

@@ -15,7 +15,8 @@
 
 " main send keys function
 function! TmuxSendKeys(keys)
-    let l:keys = substitute(a:keys, '^[\ ]*', '', 'g') "strip leading whitespace
+    let l:keys = a:keys
+    "let l:keys = substitute(a:keys, '^[\ ]*', '', 'g') "strip leading whitespace
     let l:keys = substitute(l:keys, '	', '    ', 'g') "make tabs spaces
     let l:keys = substitute(l:keys, ";$", '; ', 'g') "preserve trailing semicolons
     let l:keys = escape(l:keys, '\"$')