nvim : <Leader>z also saves all files.

This commit is contained in:
Dmitry Voronin 2023-10-17 20:32:15 +03:00
parent 99c75ffff5
commit fc90553669

View file

@ -1,14 +1,14 @@
require('key/rekey') require('key/rekey')
rekey_normal('<Leader>.', '@:') -- repeat command. NOTE: is this the same as Q ? rekey_normal('<Leader>.', '@:') -- repeat command. NOTE: is this the same as Q ?
rekey_normal('zz', '<cmd>wa<cr>') -- save file. rekey_normal('zz', '<cmd>wa<cr>') -- save file.
rekey_normal('<Leader>z', '<cmd>qa<cr>') -- quit all. rekey_normal('<Leader>z', '<cmd>wqa<cr>') -- save & quit all.
rekey_normal('<Leader>v', 'v') -- visual select (duplicate). rekey_normal('<Leader>v', 'v') -- visual select (duplicate).
rekey_normal('gh', '0') -- go left. rekey_normal('gh', '0') -- go left.
rekey_normal('gl', '$') -- go right. rekey_normal('gl', '$') -- go right.
rekey_normal('gj', 'G') -- go bottom. rekey_normal('gj', 'G') -- go bottom.
rekey_normal('gk', 'gg') -- go top. rekey_normal('gk', 'gg') -- go top.
rekey_normal('U', '<C-r>') -- redo. rekey_normal('U', '<C-r>') -- redo.
rekey_normal(';', ':') -- remap ; to :. rekey_normal(';', ':') -- remap ; to :.
rekey_visual(';', ':') -- remap ; to :. rekey_visual(';', ':') -- remap ; to :.