Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I enter into copy mode and do a search of the tmux window buffer with /. This works great, except when I want to do a second search, the original search term appears at the search prompt and I have to erase it by pressing and holding down the DELETE key. CTRL-U doesn't seem to clear the line. Is there a faster way to clear the search term than DELETE?

share|improve this question
up vote 2 down vote accepted

Since you mention using / for searching, I will assume you are using vi-mode keys. The default vi-edit key table does not bind C-u (it is bound to delete-line in the emacs-edit key table).

You can bind it manually (e.g. in your .tmux.conf, or after <prefix>:):

bind-key -t vi-edit C-u delete-line
share|improve this answer
thank you! that works – dan Apr 27 '11 at 14:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.