I want to search for the occurrence of 100169200

I typed /100169200 but vi says Pattern not found


Since the question has been downvotes, I would like to make it clear that grep can find the number in the file, but vi does not.

Edit 2

For the sake of it, I download vim for windows, and it can find it. However vi in Solaris still does not work.

  • have you tried vimgrep?
    – MaQleod
    Aug 5, 2011 at 5:00
  • I'm sorry Rosdi, but the number you are looking for is in another castle. Aug 5, 2011 at 5:08
  • Why the downvotes? Was the question not valid? As I said.. grep can find it, but vi doesn't.
    – Rosdi
    Aug 5, 2011 at 6:19
  • 1
    What if you try to search for anything else with vi? Can you find it? Try searching for a word or number or definitely see with your own eyes while in vi. If that does not help, then you have some very strange problem. Oh, and about the downvotes: usually questions with only couple of lines in them tend to get downvotes easily. The more descriptive question, the easier to answer. Aug 5, 2011 at 6:42
  • @Rosdi: The four votes to close as off-topic should give you a hint as to the downvotes.
    – womble
    Aug 5, 2011 at 7:17

1 Answer 1


Then the number isn't in the file you searched.

  • It is there when I grep it... I want to search in vi so that I can move back and forward.
    – Rosdi
    Aug 5, 2011 at 5:08
  • 1
    You can search in less as well...
    – Sven
    Aug 5, 2011 at 7:14
  • @SvenW thanks for the tip.. it works. vi still does not.
    – Rosdi
    Aug 5, 2011 at 8:02

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