export SHELL='bash'
export EDITOR='vim'
export VISUAL='vim'
-export PAGER='less -eFRX'
-export MANPAGER="less -eFRX"
+export PAGER='less'
+export MANPAGER='less'
# Set prompt
if [[ -z "$MSYS2_PS1" ]]; then
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
-# Highlight section titles in manual pages
-export LESS_TERMCAP_md="${yellow}";
-
+# syntax highlighting in less
+export LESSOPEN="| /mingw64/bin/src-hilite-lesspipe.sh %s"
+export LESS=' -R '
# Load aliases, functions, etc
for file in ${HOME}/.config/bash/*; do
alias ls="ls $colorflag $lsflags"
-# grep
+# grep and less color
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
+alias less='less -RX' # raw control characters, don't clear the screen after quitting
# Shortcuts
-alias less='less -erFRX' # raw control characters, don't clear the screen after quitting
alias info='info --vi-keys'
alias open='xdg-open &>/dev/null'
alias h='history'
set wildignore+=tags,.*.un~,*.pyc
set winaltkeys=no
+let mapleader = ","
+
" visual
" ---------------------
highlight Normal guibg=black guifg=white
" mappings
" ---------------------
-let mapleader = ","
" buffers
nnoremap <Leader>b :buffer<cr>