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

-rw-r--r-- ftplugin/sh.vim


      1 " Send Word is prefixed in shell scripts with 'echo $'
      2 silent! nmap <buffer> <silent> <F7> :call TmuxSendKeysEnter('echo $' . expand("<cword>"))<CR>
      3 
      4 " Send Word with F6 can be used to print all fields in array
      5 silent! nmap <buffer> <silent> <F6> :call TmuxSendKeysEnter('for i in ${' . expand("<cword>") . '[@]}; do echo $i; done')<CR>
      6 
      7 " lines are continued when ending in \
      8 " TODO
      9 
     10 
     11