1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-31 20:10:49 +02:00

Correct what 'ZZ' does (#5340)

This commit is contained in:
nicklutz15
2025-06-23 11:55:35 -07:00
committed by GitHub
parent 344c903fe9
commit 44ddd98549

4
vim.md
View File

@@ -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