Topic

Vi

Modal editing essentials for when vi is the only editor you have.

Featured in Vi

Select and delete to the end of a file in Vim
Preston Tunnell Wilson
Preston Tunnell Wilson
Select all and copy, paste, or delete the contents
Glory Kim
Glory Kim

Articles in Vi

10

Go To End of File in Vim / Vi

Select and delete to the end of a file in Vim

Select all in Vim / Vi

Select all and copy, paste, or delete the contents

Copy & Paste in Vim / Vi

Copy (Yank), Paste (Put) and Cut (Delete) in Vim

Searching in Vim

Search forward, backward, case insensitive, and more

Show & Hide Line Numbers in Vim / Vi

Toggle absolute and relative line numbers

Undo & Redo in Vim / Vi

Keyboard shortcuts and summary of how Vim tracks changes

Vim Modes

Learn about seven of Vim’s modes

Vim / Vi Page Up and Down Controls

Quick reference for Vim's page up and down controls

How to delete lines in Vim / Vi

The best answer depends on which mode you use

Vim Find And Replace

You can use either the substitute command or the slash and dot method to search for patterns and replace with different values.