diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-06 21:25:35 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-06 21:25:35 +0100 |
commit | 6768dcbb8fd1782d1ed281db3de8912960cae4ac (patch) | |
tree | 01d6d469b8e5265807f97fa9b2973309bc6bc506 /.config/nvim | |
parent | 5fcda4c1a701d171af2c7d7ca92477d2b98bea91 (diff) |
nvim: Rework netrw bindings
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/mango/remap.lua | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/.config/nvim/lua/mango/remap.lua b/.config/nvim/lua/mango/remap.lua index 08ec743..824ad53 100644 --- a/.config/nvim/lua/mango/remap.lua +++ b/.config/nvim/lua/mango/remap.lua @@ -55,15 +55,14 @@ remap('n', '<leader>T', function() transpose_chars(true) end) --- Open netrw in a vertical split -remap('n', '–', function() - vim.cmd('vsplit | Ex') -end) +-- Open netrw quickly +remap('n', '-', ':Ex<CR>') --- Open netrw in a horizontal split -remap('n', 'g–', function() - vim.cmd('split | Ex') -end) +-- Open netrw in a vertical- or horizontal split. The split is made manually +-- instead of by using :Vexplore or :Sexplore so that it’s made on the right or +-- bottom instead of the left or top +remap('n', '–', ':vsplit | Ex<CR>') +remap('n', 'g–', ':split | Ex<CR>') -- Sort lines in selection remap('v', 's', ':sort<CR>') |