From 9107cda2e6ad4055676c783b03ebf37d6567d44a Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 24 Jul 2023 20:38:00 +0200 Subject: [PATCH] vim as manpager --- .bash_extra | 3 +++ .vimrc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.bash_extra b/.bash_extra index 8b6bdd7..4f4cb86 100644 --- a/.bash_extra +++ b/.bash_extra @@ -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' diff --git a/.vimrc b/.vimrc index 03c5acb..7ee678d 100644 --- a/.vimrc +++ b/.vimrc @@ -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 = ","