Sometimes I try to search some command by CTRL+R and it’s not found,
while I recently used it or search by CTRL+R with success.
Afer I run `history I’m able to find the command again.
Is this behavior is normal?
How it can be changed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ctrl+R searches backward from the current position in the history, so if you already moved that position you’ll miss the parts toward the end.
e.g.:
Ctrl+R,bar yields:
but also moves to that point in history – if you subsequently do Ctrl+R and search for
quarg, you won’t find it. This is reset by remedied by usingend-of-history(M-> by default) to re-set the index.