From b742db65fe892961db83148c8ee0474d1f2fe849 Mon Sep 17 00:00:00 2001 From: snorkypie Date: Tue, 5 Mar 2024 01:34:42 +0200 Subject: [PATCH] vim: Support keybinding `z.` (#8702) `z.` is similar to zz but moves the cursor to the first non-blank character. From the documentation: ``` z. Redraw, line [count] at center of window (default cursor line). Put cursor at first non-blank in the line. zz Like "z.", but leave the cursor in the same column. ``` Release Notes: - Support the `z.` vim keybinding: Center cursor in window and put cursor at first non-blank --- assets/keymaps/vim.json | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json index bfaa444a68113a00af1270dd7b38ffefff1db1c0..3bfc718ffacbf3de77c0f98d606fb67253f22f77 100644 --- a/assets/keymaps/vim.json +++ b/assets/keymaps/vim.json @@ -218,6 +218,7 @@ // z commands "z t": "editor::ScrollCursorTop", "z z": "editor::ScrollCursorCenter", + "z .": ["workspace::SendKeystrokes", "z z ^"], "z b": "editor::ScrollCursorBottom", "z c": "editor::Fold", "z o": "editor::UnfoldLines",