From 697dbbdfe606c03a36adee298c8e9081290e4d3b Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 25 Apr 2025 10:58:18 +0200 Subject: use vim for manpages --- .bashrc | 1 + .vimrc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index 9870d56..bd723cc 100644 --- a/.bashrc +++ b/.bashrc @@ -5,6 +5,7 @@ export PAGER=less export EDITOR=vim +export MANPAGER='vim +MANPAGER --not-a-term -' export HISTIGNORE='sudo id:uname:date:exit:df:ll:ls:ps:pwd:tc:top:history' export HISTCONTROL=ignoreboth:erasedups # no start space and duplicate entries export HISTSIZE=100000 # big big history diff --git a/.vimrc b/.vimrc index 158c3ec..640cd09 100644 --- a/.vimrc +++ b/.vimrc @@ -34,6 +34,10 @@ augroup END set guifont=6x13:h13 set guicursor=a:block-Cursor/lCursor-blinkon0 +" Activate man pages display in vim with hyperlink navigation. +ru ftplugin/man.vim +set keywordprg=:Man + " fzf plugin set rtp+=/opt/homebrew/opt/fzf let g:fzf_preview = 'cat {}' -- cgit v1.2.3