Skip to main content
Became Hot Network Question
added 1 character in body
Source Link

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?

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<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?

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\<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?

Source Link

Command to copy from current window and paste the text into terminal buffer

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<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?