mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
Correct what 'ZZ' does (#5340)
This commit is contained in:
4
vim.md
4
vim.md
@@ -23,11 +23,11 @@ specific points in the file, and for fast editing.
|
|||||||
:q # Quit vim
|
:q # Quit vim
|
||||||
:w # Save current file
|
:w # Save current file
|
||||||
:wq # Save file and quit vim
|
:wq # Save file and quit vim
|
||||||
ZZ # Save file and quit vim
|
|
||||||
:q! # Quit vim without saving file
|
:q! # Quit vim without saving file
|
||||||
# ! *forces* :q to execute, hence quitting vim without saving
|
# ! *forces* :q to execute, hence quitting vim without saving
|
||||||
ZQ # Quit vim without saving file
|
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
|
u # Undo
|
||||||
CTRL+R # Redo
|
CTRL+R # Redo
|
||||||
|
Reference in New Issue
Block a user