From 6768dcbb8fd1782d1ed281db3de8912960cae4ac Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 6 Nov 2023 21:25:35 +0100 Subject: nvim: Rework netrw bindings --- .config/nvim/lua/mango/remap.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to '.config/nvim/lua/mango/remap.lua') 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', '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') --- 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') +remap('n', 'g–', ':split | Ex') -- Sort lines in selection remap('v', 's', ':sort') -- cgit v1.2.3