nvim : add shortcuts to increase split sizes.

This commit is contained in:
Dmitry Voronin 2023-10-18 18:06:17 +03:00
parent 26e0dea207
commit ef3a18c6c8
2 changed files with 6 additions and 4 deletions

View file

@ -2,7 +2,7 @@ require('key/rekey')
rekey_normal('<Leader>.', '@:') -- repeat command.
rekey_visual('<Leader>.', '@:') -- repeat command.
rekey_normal('zz', '<cmd>wa<cr>') -- save file.
rekey_normal('zz', '<cmd>wa<cr>') -- save all files.
rekey_normal('<Leader>z', '<cmd>wqa<cr>') -- save & quit all.
rekey_normal('<Leader>v', 'v') -- visual select (duplicate).
rekey_normal('gh', '0') -- go left.

View file

@ -1,5 +1,7 @@
require('key/rekey')
rekey_normal('_', '4<C-w><')
rekey_normal('-', '2<C-w>-')
rekey_normal('<Leader>=', '<C-w>=')
rekey_normal('_', '2<C-w>+') -- increase split size vertically.
rekey_normal('-', '2<C-w>-') -- decrease split size vertically.
rekey_normal('|', '4<C-w>>') -- increase split size horizontally.
rekey_normal('\\', '4<C-w><') -- decrease split size horizontally.
rekey_normal('<Leader>=', '<C-w>=') -- equalize split sizes.