aboutsummaryrefslogtreecommitdiff
path: root/bashrc
blob: 4f51625692468dbabb9da161422c5c6ee3cd10ea (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":%!col -b" -c":file man|:setlocal filetype=man buftype=nowrite readonly nonumber nolist" -'
# 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 filetype=git buftype=nowrite readonly" -'

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