Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 588 Bytes

File metadata and controls

32 lines (23 loc) · 588 Bytes

Vim

Terminal based text editor.

Create or Edit a File

# edit file, create one if none exists
vim FILENAME
vim file.txt

Cursor Movement

  • L - move to bottom of screen
  • H - move to top of screen
  • $ - jump to end of line
  • gg - go to first line of document
  • G - go to last line of document

Insert Mode

  • i - insert before cursor
  • I - insert at beggining of line
  • o - append new line below current line

Copy & Paste

  • yy - yank, copy a line
  • dd - delete, cut a line
  • p - paste, after the cursor
  • P - paste, before the cursor