From 2def35d0e77fd78874dfc2ac4534f39ac62d7aec Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 9 Apr 2022 15:45:19 +0200 Subject: [PATCH] vim:keys: Add `gm` to open a manpage Open the manpage in the WORD under the cursor. --- .config/vim/vimrc.d/40-keys.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 56eb0ec..e6b634b 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -177,3 +177,7 @@ inoremap ( ()U " revertible in smaller chunks inoremap u inoremap u + +" Open the manpage in the WORD under cursor +nnoremap gm :Man +xnoremap gm :Man