Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

in VI and man command, how to exactly match a string? I don't know how to exact match a string~

share|improve this question
    
Do you mean match "by" in "something by something" but not in "something bytes this"? –  livibetter Oct 11 '10 at 9:12

2 Answers 2

up vote 5 down vote accepted

Press / and enter the regular expression for the string you want to match, then press Enter.

share|improve this answer
    
/ \word\b , works, use regular expression, thanks –  Foolish Oct 12 '10 at 1:22

If you mean a single word, you can use /\<word\>.

share|improve this answer

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.