terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user@linux:~$
Vim Navigation and Editing
Practice vim navigation keys (hjkl) and editing commands (dd, yy, p, u).
Step 1
Create a multi-line file for practicing vim navigation.
Type: echo -e 'Line 1\nLine 2\nLine 3\nLine 4\nLine 5' > lines.txt
echo -e 'Line 1\nLine 2\nLine 3\nLine 4\nLine 5' > lines.txt
Step 2
Open the file in vim. Practice navigation: h(left), j(down), k(up), l(right). Use dd to delete a line, then u to undo. When done, exit with :q!
Step 3
Verify the file is unchanged (you used :q! to quit without saving).
Step 4
Open the file again. Use yy to yank (copy) a line, move with j, then p to paste below. Use dd to delete a line. Save with :wq.
Step 5
Check the result of your vim editing.