2

In copy mode I can copy interesting text. I can also search for some other text.

But how can I paste the text I just copied into search input to find other occurrences?

1 Answer 1

0

In your .tmux.conf

bind-key -T copy-mode-vi p paste-buffer \; send-keys -X cancel

Now when you press p you paste your code, and go back to edition mode.

1
  • This isn't what I'm looking for - I need to paste into search input without exiting the copy mode. Like, select some text, copy and search for more occurrences of that text. On the other hand, I can copy into clipboard, exit, enter copy mode again and paste - but I lose cursor position.
    – sevo
    Mar 13, 2019 at 17:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .