From 381feb05d59b4f1214b773e39d6c94bf7afe178b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 13 Aug 2024 01:14:11 +0200 Subject: nvim: Use s and S for scratch buffers --- .config/nvim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index db6c807..ffe7b3d 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -96,11 +96,11 @@ vim.keymap.set('n', 'gJ', function() ]] end, { desc = '[J]oin lines without whitespace' }) -vim.keymap.set('n', 'k', function() +vim.keymap.set('n', 's', function() vim.cmd 'vsplit' mk_scratch_buffer() end, { desc = 'Open the scratch buffer in a vertical split' }) -vim.keymap.set('n', 'K', function() +vim.keymap.set('n', 'S', function() vim.cmd 'split' mk_scratch_buffer() end, { desc = 'Open the scratch buffer in a horizontal split' }) -- cgit v1.2.3