Technohelp

Linux OS

Vim Text Editor

Powerful command line text and programming tool


Updated at: 2019-10-01 14:41:50 (Author: Admin User)

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.

Links

Vim Cheat Sheet