Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.