vim as manpager

This commit is contained in:
Michael Grote 2023-07-24 20:38:00 +02:00
parent 9c14748eb6
commit 9107cda2e6
2 changed files with 5 additions and 0 deletions

View file

@ -29,6 +29,9 @@ export PS1='\n\[\e[34m\]\u@\[\e[34m\]\h \[\e[94m\]\w\[\e[33m\]$(__git_ps1) \[\e[
# https://unix.stackexchange.com/questions/332791/how-to-permanently-disable-ctrl-s-in-terminal
stty -ixon
# vim als MANPAGER
export MANPAGER="vim -c ASMANPAGER -"
# farben fur manpages
# https://opensource.com/article/18/5/bash-tricks
export LESS_TERMCAP_mb=$'\E[01;31m'

2
.vimrc
View file

@ -36,6 +36,8 @@ Plugin 'ConradIrwin/vim-bracketed-paste'
Plugin 'wellle/targets.vim'
" Undotree
Plugin 'mbbill/undotree'
" vim as MANPAGER
Plugin 'lambdalisue/vim-manpager'
call vundle#end()
let mapleader = ","