I am having trouble crafting a command that would copy the text from the current window and paste this text into a terminal
buffer opened in the split below.
Here are a few things I tried:
normal yaw<c-w>j<c-w>"0
:execute "normal yaw\<c-w>j\<c-w>\"0"
:execute 'normal yaw<c-w>j<c-w>"0'
let cmd = "normal yaw\<c-w>j<cw>j\<c-w>" . '"0'
:execute cmd
But nothing seems to be working. I can get everything to work up until the very last part ("0
) which specifies the register to paste from. No escape sequences seem to work.
What am I missing with this?