aboutsummaryrefslogtreecommitdiff
path: root/utils/bashrc
blob: 24c51a0a1641214bcebbd2da4accecf4c9cf0997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

# gvim () { /bin/gvim $(if [[ "$#" > 0 && `/bin/gvim --serverlist | wc -l` ]]; then echo --remote; fi) $@;  }
# vim ()  { /bin/vim  $(if [[ "$#" > 0 && `/bin/vim --serverlist | wc -l` ]];  then echo --remote; fi) $@;  }

# man()
# {
#     /bin/gvim \
#         $(if [[ `/bin/gvim --serverlist | wc -l` > 0 ]]; then echo --remote-send; fi) \
#         ":enew<CR>:0read !groffer --pager='cat' --tty $1 <bar> col -bx<CR> :set filetype=man buftype=nowrite readonly<CR>gg";
# }

# export MANPAGER='vim -c":set noswapfile|%!col -b" -c":file man|:setlocal filetype=man buftype=nowrite readonly nonumber nolist signcolumn=no" -'
export MANPAGER="vim -M +MANPAGER -" 

# man() { /bin/vim ":enew<CR>:0read !groffer --pager='cat' --tty $1 <bar> col -bx<CR> :set filetype=man buftype=nowrite readonly<CR>gg" -; }
# alias git='git -c color.ui=false'
# export GIT_DIFF_OPTS="--no-color"



git config --global --replace-all color.pager 0
git config --global --replace-all core.pager 'vim -c":set noswapfile filetype=git buftype=nowrite readonly nolist nonumber signcolumn=no|:file git" -'
# export GIT_PAGER=''

# alias git="TERM=dumb git"

# export EDITOR="gvim()"
# export PAGER="tee /tmp/output.txt /dev/stdout | /bin/vim -"

# --remote-expr ":%!col -b" -c":set buftype=nowrite filetype=man readonly" -'A
..