From d308afef4c3346f267e2283a0440264f6f5dd3c8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 16 Oct 2023 20:35:19 +0200 Subject: nvim: Add binding to open ‘netrw’ in a vsplit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/mango/remap.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/nvim/lua/mango/remap.lua b/.config/nvim/lua/mango/remap.lua index e8bccc6..fb4d70d 100644 --- a/.config/nvim/lua/mango/remap.lua +++ b/.config/nvim/lua/mango/remap.lua @@ -61,3 +61,11 @@ remap('n', 't', transpose_chars) remap('n', 'T', function() transpose_chars(true) end) + +-- Open netrw in a vertical split +remap('n', '–', function() + vim.cmd[[ + vsplit + :Ex + ]] +end) -- cgit v1.2.3