Skip to content

Commit 44ddd98

Browse files
authored
Correct what 'ZZ' does (#5340)
1 parent 344c903 commit 44ddd98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vim.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ specific points in the file, and for fast editing.
2323
:q # Quit vim
2424
:w # Save current file
2525
:wq # Save file and quit vim
26-
ZZ # Save file and quit vim
2726
:q! # Quit vim without saving file
2827
# ! *forces* :q to execute, hence quitting vim without saving
2928
ZQ # Quit vim without saving file
30-
:x # Save file(only when the file is modified) and quit vim
29+
:x # Save file (only if file was modified) and quit vim
30+
ZZ # Save file (only if file was modified) and quit vim
3131
3232
u # Undo
3333
CTRL+R # Redo

0 commit comments

Comments
 (0)