From 44ddd985490ccbf374e95feea2787957d4563111 Mon Sep 17 00:00:00 2001 From: nicklutz15 <121742554+nicklutz15@users.noreply.github.com> Date: Mon, 23 Jun 2025 11:55:35 -0700 Subject: [PATCH] Correct what 'ZZ' does (#5340) --- vim.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim.md b/vim.md index 7cf347ff..561892e8 100644 --- a/vim.md +++ b/vim.md @@ -23,11 +23,11 @@ specific points in the file, and for fast editing. :q # Quit vim :w # Save current file :wq # Save file and quit vim - ZZ # Save file and quit vim :q! # Quit vim without saving file # ! *forces* :q to execute, hence quitting vim without saving ZQ # Quit vim without saving file - :x # Save file(only when the file is modified) and quit vim + :x # Save file (only if file was modified) and quit vim + ZZ # Save file (only if file was modified) and quit vim u # Undo CTRL+R # Redo