Can I ask Tmux to immediately exit copy mode and paste the content when you yank?

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I am using vi mode for my tmux. I mapped 'enter copy mode' to M-0. This is really convenient: just my left thumb on left-Alt and my right ring finger on 0
after that , i navigate with vi keys. When I reach my target location, I type v to enter selection mode; then I select a few words, and type 'y', which yank the selected region into tmux's clipboard.
Now comes the complication: I need to type Ctrl-a then ] to paste the selected region. This is unnecessary, because in command line we always paste immediately the position when we enter copy mode. So the Ctrl-a ] is completely redundant.
Is there a way to override 'y' so that it does two things: first yank the region, second, immediately quit copy mode and paste the selected region to the position where I enterred copy mode.
tmux
add a comment |Â
up vote
2
down vote
favorite
I am using vi mode for my tmux. I mapped 'enter copy mode' to M-0. This is really convenient: just my left thumb on left-Alt and my right ring finger on 0
after that , i navigate with vi keys. When I reach my target location, I type v to enter selection mode; then I select a few words, and type 'y', which yank the selected region into tmux's clipboard.
Now comes the complication: I need to type Ctrl-a then ] to paste the selected region. This is unnecessary, because in command line we always paste immediately the position when we enter copy mode. So the Ctrl-a ] is completely redundant.
Is there a way to override 'y' so that it does two things: first yank the region, second, immediately quit copy mode and paste the selected region to the position where I enterred copy mode.
tmux
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am using vi mode for my tmux. I mapped 'enter copy mode' to M-0. This is really convenient: just my left thumb on left-Alt and my right ring finger on 0
after that , i navigate with vi keys. When I reach my target location, I type v to enter selection mode; then I select a few words, and type 'y', which yank the selected region into tmux's clipboard.
Now comes the complication: I need to type Ctrl-a then ] to paste the selected region. This is unnecessary, because in command line we always paste immediately the position when we enter copy mode. So the Ctrl-a ] is completely redundant.
Is there a way to override 'y' so that it does two things: first yank the region, second, immediately quit copy mode and paste the selected region to the position where I enterred copy mode.
tmux
I am using vi mode for my tmux. I mapped 'enter copy mode' to M-0. This is really convenient: just my left thumb on left-Alt and my right ring finger on 0
after that , i navigate with vi keys. When I reach my target location, I type v to enter selection mode; then I select a few words, and type 'y', which yank the selected region into tmux's clipboard.
Now comes the complication: I need to type Ctrl-a then ] to paste the selected region. This is unnecessary, because in command line we always paste immediately the position when we enter copy mode. So the Ctrl-a ] is completely redundant.
Is there a way to override 'y' so that it does two things: first yank the region, second, immediately quit copy mode and paste the selected region to the position where I enterred copy mode.
tmux
tmux
asked 1 hour ago
user152503
1262
1262
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480437%2fcan-i-ask-tmux-to-immediately-exit-copy-mode-and-paste-the-content-when-you-yank%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password