From fc90553669274df7b9d5148e162b1a7bbedee234 Mon Sep 17 00:00:00 2001 From: desktop Date: Tue, 17 Oct 2023 20:32:15 +0300 Subject: [PATCH] nvim : z also saves all files. --- .config/nvim/lua/key/common.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.config/nvim/lua/key/common.lua b/.config/nvim/lua/key/common.lua index 0e53a1c..3e62536 100644 --- a/.config/nvim/lua/key/common.lua +++ b/.config/nvim/lua/key/common.lua @@ -1,14 +1,14 @@ require('key/rekey') -rekey_normal('.', '@:') -- repeat command. NOTE: is this the same as Q ? -rekey_normal('zz', 'wa') -- save file. -rekey_normal('z', 'qa') -- quit all. -rekey_normal('v', 'v') -- visual select (duplicate). -rekey_normal('gh', '0') -- go left. -rekey_normal('gl', '$') -- go right. -rekey_normal('gj', 'G') -- go bottom. -rekey_normal('gk', 'gg') -- go top. -rekey_normal('U', '') -- redo. +rekey_normal('.', '@:') -- repeat command. NOTE: is this the same as Q ? +rekey_normal('zz', 'wa') -- save file. +rekey_normal('z', 'wqa') -- save & quit all. +rekey_normal('v', 'v') -- visual select (duplicate). +rekey_normal('gh', '0') -- go left. +rekey_normal('gl', '$') -- go right. +rekey_normal('gj', 'G') -- go bottom. +rekey_normal('gk', 'gg') -- go top. +rekey_normal('U', '') -- redo. rekey_normal(';', ':') -- remap ; to :. rekey_visual(';', ':') -- remap ; to :.