Search for target id in the file (using forward slash and then student id):
/ text-to-search-for
If file is found and is highlighted, delete / cut the selected line.
> d
Or you can copy the line
> y
The you can move the cursor to the required line position. you can then press 'p' to paste.
Press
- type :w to write changes to the file
- type :q to quite the file following saving changes.