This is how to search a text in Vim and Vi :

  1. Go to your file folder and open your file
    $> cd path/to/your/file
    $> vi yourFile.extension
  2. Press ESC key
  3. Type / folloed with your text to find. Example /haizly
  4. Press Enter
  5. Hit n to search for the next occurence and N to search backwards

Written by

Albert Oplog

Hi, I'm Albert Oplog. I would humbly like to share my tech journey with people all around the world.