diff options
author | Max Christian Pohle | 2018-10-22 00:02:58 +0200 |
---|---|---|
committer | Max Christian Pohle | 2018-10-22 20:42:25 +0200 |
commit | f2e01d7e513067ddb57c75f6e38cdcf434946cf8 (patch) | |
tree | 4e8448506756d2144db173d01385798840507133 /xdg-additions/bashrc | |
parent | 31f80d9c334e38e486545407ea5eb5f5cbb2f07d (diff) | |
download | vim-karlmarks-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.tar.bz2 vim-karlmarks-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.zip |
Major refactoring for version 2.0
vim-plug has been removed and replaced with Vims internal bundle
mechanism. But I already noticed, that there is also GLVM now and
started trying that as well.
Diffstat (limited to 'xdg-additions/bashrc')
-rw-r--r-- | xdg-additions/bashrc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/xdg-additions/bashrc b/xdg-additions/bashrc new file mode 100644 index 0000000..24c51a0 --- /dev/null +++ b/xdg-additions/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 | ||