From b711f08f063414a42e22acec2e3d91e5b0b6462a Mon Sep 17 00:00:00 2001 From: Avelino <31996+avelino@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:34:02 -0300 Subject: [PATCH] save and quit (`ZZ`) Write current file, if modified, and close the current window (same as ":x"). If there are several windows for the current file, only the current window is closed --- config.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.toml b/config.toml index 4e35f54..22918fb 100644 --- a/config.toml +++ b/config.toml @@ -64,6 +64,9 @@ esc = ["collapse_selection", "keep_primary_selection"] j = "move_line_down" k = "move_line_up" +# Save and quit (ZZ) +Z = { Z = ":wq" } + # Extend and select commands that expect a manual input can't be chained # I've kept d[X] commands here because it's better to at least have the stuff you want to delete # selected so that it's just a keystroke away to delete