From 71517e8ff5d9ce4de2774e0eb4a8f3eb64cdb141 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 19 May 2024 01:06:15 +0200 Subject: nvim: mappings: open man in vertical --- nvim/nvim/lua/mappings.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/nvim/lua/mappings.lua b/nvim/nvim/lua/mappings.lua index 84b27d6..83077f6 100644 --- a/nvim/nvim/lua/mappings.lua +++ b/nvim/nvim/lua/mappings.lua @@ -17,5 +17,8 @@ vim.keymap.set('n', 'k', 'gk') vim.keymap.set('n', 'j', 'gj') vim.keymap.set('n', 'k', 'gk') +vim.keymap.set('n', 'gm', ':vertical Man ' .. vim.fn.expand '' .. '', + { desc = 'open man page in vertical' }) + vim.api.nvim_create_user_command('MakeTags', '!ctags -R .', {}) vim.api.nvim_create_user_command('Sgrep', 'silent grep! | copen 10', {nargs= '+'}) -- cgit v1.2.3