Vim
Vim usage, shortcuts, and configuration tips.
How to Save a File and Exit Vim / Vi
Save a file and quit Vim or Vi with :w, :wq, :q!, :x, ZZ, and ZQ. This guide explains the common save, exit, discard, and read-only file commands.

How to Select All in Vim: Copy, Delete, or Yank Every Line
Select all text in Vim with ggVG, yank every line with :%y, copy the whole file to the system clipboard, or delete all lines with :%d. No plugins required.

How to Copy, Cut and Paste in Vim / Vi
Copy, cut, and paste in Vim with yank, delete, and put commands. Includes copying to the system clipboard, the unnamedplus setting, and OSC 52 over SSH.

How to Search in Vim / Vi
Learn how to search in Vim / Vi with forward and backward search, whole-word matching, case sensitivity, search highlighting, and smartcase examples.

How to Show Line Numbers in Vim and Vi
Turn on line numbers in Vim or Vi for the current session, set them by default in .vimrc or init.lua, and switch between absolute, relative, and hybrid numbering.

Find and Replace in Vim / Vi
Step-by-step guide to finding and replacing text in Vim using the :substitute command. Covers ranges, flags, regex, case sensitivity, and practical examples.



