diff options
author | Max Christian Pohle | 2018-10-29 18:02:40 +0100 |
---|---|---|
committer | Max Christian Pohle | 2018-10-29 18:02:40 +0100 |
commit | eb2e7959987ebc405c7a03060f259655e13f01d0 (patch) | |
tree | 773e2b638c135fb9861567585f4ce82db252df98 /utils/bashrc | |
parent | 6284983fedcbdc54874d6e657047994b292be480 (diff) | |
download | vim-karlmarks-eb2e7959987ebc405c7a03060f259655e13f01d0.tar.bz2 vim-karlmarks-eb2e7959987ebc405c7a03060f259655e13f01d0.zip |
Further cleaning finally done
Diffstat (limited to 'utils/bashrc')
-rw-r--r-- | utils/bashrc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/utils/bashrc b/utils/bashrc new file mode 100644 index 0000000..24c51a0 --- /dev/null +++ b/utils/bashrc | |||
@@ -0,0 +1,30 @@ | |||
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":set noswapfile|%!col -b" -c":file man|:setlocal filetype=man buftype=nowrite readonly nonumber nolist signcolumn=no" -' | ||
13 | export MANPAGER="vim -M +MANPAGER -" | ||
14 | |||
15 | # man() { /bin/vim ":enew<CR>:0read !groffer --pager='cat' --tty $1 <bar> col -bx<CR> :set filetype=man buftype=nowrite readonly<CR>gg" -; } | ||
16 | # alias git='git -c color.ui=false' | ||
17 | # export GIT_DIFF_OPTS="--no-color" | ||
18 | |||
19 | |||
20 | |||
21 | git config --global --replace-all color.pager 0 | ||
22 | git config --global --replace-all core.pager 'vim -c":set noswapfile filetype=git buftype=nowrite readonly nolist nonumber signcolumn=no|:file git" -' | ||
23 | # export GIT_PAGER='' | ||
24 | |||
25 | # alias git="TERM=dumb git" | ||
26 | |||
27 | # export EDITOR="gvim()" | ||
28 | # export PAGER="tee /tmp/output.txt /dev/stdout | /bin/vim -" | ||
29 | |||
30 | # --remote-expr ":%!col -b" -c":set buftype=nowrite filetype=man readonly" -'A | ||