diff options
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ | |||
1 | |||
2 | gvim () { /bin/gvim $(if [[ "$#" > 0 && `/bin/gvim --serverlist | wc -l` ]]; then echo --remote; fi) $@; } | ||
3 | vim () { /bin/vim $(if [[ "$#" > 0 && `/bin/vim --serverlist | wc -l` ]]; then echo --remote; fi) $@; } | ||
4 | |||
5 | # man() | ||
6 | # { | ||
7 | # /bin/gvim \ | ||
8 | # $(if [[ `/bin/gvim --serverlist | wc -l` > 0 ]]; then echo --remote-send; fi) \ | ||
9 | # ":enew<CR>:0read !groffer --pager='cat' --tty $1 <bar> col -bx<CR> :set filetype=man buftype=nowrite readonly<CR>gg"; | ||
10 | # } | ||
11 | |||
12 | export MANPAGER='vim -c":%!col -b" -c":file man|:setlocal filetype=man buftype=nowrite readonly nonumber nolist" -' | ||
13 | # man() { /bin/vim ":enew<CR>:0read !groffer --pager='cat' --tty $1 <bar> col -bx<CR> :set filetype=man buftype=nowrite readonly<CR>gg" -; } | ||
14 | alias git='git -c color.ui=false' | ||
15 | export GIT_PAGER='vim -c":set filetype=git buftype=nowrite readonly" -' | ||
16 | |||
17 | # alias git="TERM=dumb git" | ||
18 | |||
19 | # export EDITOR="gvim()" | ||
20 | # export PAGER="tee /tmp/output.txt /dev/stdout | /bin/vim -" | ||
21 | |||
22 | # --remote-expr ":%!col -b" -c":set buftype=nowrite filetype=man readonly" -'A | ||