From 59bec87353bbfc4cccf1a94ad0aec606871eefc2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 6 Nov 2023 02:27:38 +0100 Subject: nvim: Add remap to sort lines --- .config/nvim/lua/mango/remap.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config/nvim/lua/mango') diff --git a/.config/nvim/lua/mango/remap.lua b/.config/nvim/lua/mango/remap.lua index 210bb12..a497b8b 100644 --- a/.config/nvim/lua/mango/remap.lua +++ b/.config/nvim/lua/mango/remap.lua @@ -67,3 +67,6 @@ end) remap('n', 'g–', function() vim.cmd('split | Ex') end) + +-- Sort lines in selection +remap('v', 's', ':sort') -- cgit v1.2.3