mirror of https://github.com/akelge/vim
23 lines
775 B
Bash
23 lines
775 B
Bash
#######################################################################################
|
|
# Setup LESS
|
|
|
|
for lp in lesspipe lesspipe.sh; do
|
|
LESSPIPE=`which $lp`
|
|
[ $? -eq 0 ] && eval `$LESSPIPE`
|
|
done
|
|
|
|
## make less colourful
|
|
LESS_TERMCAP_mb=$'\E[01;34m' # begin blinking
|
|
LESS_TERMCAP_md=$'\E[01;36m' # begin bold
|
|
LESS_TERMCAP_me=$'\E[0m' # end mode
|
|
LESS_TERMCAP_so=$'\E[01;47;34m' # begin standout-mode - info box
|
|
LESS_TERMCAP_se=$'\E[0m' # end standout-mode
|
|
LESS_TERMCAP_us=$'\E[04;32m' # begin underline
|
|
LESS_TERMCAP_ue=$'\E[0m' # end underline
|
|
|
|
LESS="-c -x4 -R -MM -PMFile\:?f%f:STDIN. ?BSize\:?B%B:Unk.?B\:?pb%pb\%:Unk.?B\:%i/%m"
|
|
LESSCHARSET=utf-8
|
|
READNULLCMD=/usr/bin/less
|
|
PAGER=/usr/bin/less
|
|
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|