nvim: keymappings: Add mapping to resize splits
This commit is contained in:
parent
f7ab6b1532
commit
93110c3445
1 changed files with 4 additions and 0 deletions
|
@ -151,3 +151,7 @@ remap('n', '<C-Left>' , ':TmuxNavigateLeft<CR>' , silent_opts)
|
||||||
remap('n', '<C-Right>', ':TmuxNavigateRight<CR>', silent_opts)
|
remap('n', '<C-Right>', ':TmuxNavigateRight<CR>', silent_opts)
|
||||||
remap('n', '<C-Up>' , ':TmuxNavigateUp<CR>' , silent_opts)
|
remap('n', '<C-Up>' , ':TmuxNavigateUp<CR>' , silent_opts)
|
||||||
remap('n', '<C-Down>' , ':TmuxNavigateDown<CR>' , silent_opts)
|
remap('n', '<C-Down>' , ':TmuxNavigateDown<CR>' , silent_opts)
|
||||||
|
|
||||||
|
-- Resize splits
|
||||||
|
remap('n', '<Leader>+', ':exe "resize " . (winheight(0) * 3/2)<CR>', silent_opts)
|
||||||
|
remap('n', '<Leader>-', ':exe "resize " . (winheight(0) * 2/3)<CR>', silent_opts)
|
||||||
|
|
Loading…
Reference in a new issue