summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-04-25 10:58:18 +0200
committerMarc Vertes <mvertes@free.fr>2025-04-25 10:58:18 +0200
commit697dbbdfe606c03a36adee298c8e9081290e4d3b (patch)
tree83a88b93b3211a5727a7acdd5a5b5aab94a3b44f
parentba6dd3256c9508ed0c71c7f3346d910803d54a46 (diff)
use vim for manpages
-rw-r--r--.bashrc1
-rw-r--r--.vimrc4
2 files changed, 5 insertions, 0 deletions
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 {}'