Skip to content

Instantly share code, notes, and snippets.

@pborissow
Created January 21, 2022 10:15
Show Gist options
  • Save pborissow/0790fd942a86be8f61a6b20e09779d73 to your computer and use it in GitHub Desktop.
Save pborissow/0790fd942a86be8f61a6b20e09779d73 to your computer and use it in GitHub Desktop.

VI Basics

Everything I ever needed from vi/vim are here

Editing a file

vi /path/to/file.txt

Once inside, use shift+i to insert or edit text Press esc to exit :q :q! :w :wq are common options after esc

Basic text search

Once inside vi, press esc and use the '/' character prefix. Example:

/checkpoint_completion_target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment