aboutsummaryrefslogtreecommitdiff
path: root/bashrc
blob: d0ac36c3511f52357a0535e1b90be9581a543bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

# 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" -'
# 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_PAGER='vim -c":set noswapfile filetype=git buftype=nowrite readonly nolist nonumber signcolumn=no|:file git" -'

# 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
..