1- ---
2- layout : default
3- title : Keymaps
4- ---
5-
61# Keymaps and Behavior
72
83## GUI shortcut table
@@ -23,18 +18,18 @@ title: Keymaps
2318| ` Ctrl+S ` | normal | save buffer | ` :write ` |
2419| ` Ctrl+S ` | insert | save buffer | ` :write ` |
2520| ` Ctrl+S ` | visual | save buffer | ` :write ` |
26- | ` Ctrl+Q ` | normal | save and close | ` :wq ` / ` :update \| close ` |
27- | ` Ctrl+Q ` | insert | save and close | ` :wq ` / ` :update \| close ` |
21+ | ` Ctrl+Q ` | normal | save and close | ` :confirm wq ` |
22+ | ` Ctrl+Q ` | insert | save and close | ` :confirm wq ` |
2823| ` Home ` | normal | line start | ` 0 ` |
2924| ` Home ` | insert | line start | ` <C-o>0 ` |
3025| ` Home ` | visual | line start | ` 0 ` |
3126| ` End ` | normal | line end | ` $ ` |
3227| ` End ` | insert | line end | ` <C-o>$ ` |
3328| ` End ` | visual | line end | ` $ ` |
34- | ` Ctrl+Backspace ` | normal | delete previous word | ` db ` |
35- | ` Ctrl+Backspace ` | insert | delete previous word | ` <C-o>db ` |
36- | ` Ctrl+Delete ` | normal | delete next word | ` dw ` |
37- | ` Ctrl+Delete ` | insert | delete next word | ` <C-o>dw ` |
29+ | ` Ctrl+Backspace ` | normal | delete previous word | GUI-style previous-word delete |
30+ | ` Ctrl+Backspace ` | insert | delete previous word | GUI-style previous-word delete |
31+ | ` Ctrl+Delete ` | normal | delete next word | GUI-style next-word delete |
32+ | ` Ctrl+Delete ` | insert | delete next word | GUI-style next-word delete |
3833
3934## Delete-selection mappings
4035
@@ -87,16 +82,7 @@ Saves the current buffer with `:update`.
8782
8883### ` Ctrl+Q `
8984
90- ` Ctrl+Q ` is treated as a GUI-style save-and-close action.
91-
92- Implementation order:
93-
94- 1 . ` :update `
95- 2 . ` :confirm close `
96- 3 . ` :confirm bdelete `
97-
98- This avoids raw quit behavior and is closer to closing a document/window in a
99- GUI editor.
85+ ` Ctrl+Q ` is treated as a GUI-style save-and-close action and runs ` :confirm wq ` .
10086
10187## Mode preservation
10288
0 commit comments