diff options
author | Max Christian Pohle | 2024-05-12 21:01:00 +0200 |
---|---|---|
committer | Max Christian Pohle | 2024-05-12 21:01:00 +0200 |
commit | eec48ff71881d8757b79dcd95aac9dac4d71bf72 (patch) | |
tree | 8e21c80a8fecbcf7a6b36c3db1d2aa061bda1959 /utils/bashrc | |
parent | f3eb203b4ad79090e36982e7b417c0cf0de52646 (diff) | |
download | vim-eec48ff71881d8757b79dcd95aac9dac4d71bf72.tar.bz2 vim-eec48ff71881d8757b79dcd95aac9dac4d71bf72.zip |
tidied this repo up and uploaded my new nvim from scratch config
Diffstat (limited to 'utils/bashrc')
-rw-r--r-- | utils/bashrc | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/utils/bashrc b/utils/bashrc deleted file mode 100644 index f0ee98b..0000000 --- a/utils/bashrc +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
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 | ||
31 | |||
32 | function vim() { | ||
33 | SERVER=$(ls -tr "$XDG_RUNTIME_DIR"/nvim.* | tail -n1) | ||
34 | if [ $# -gt 0 ] && [ -n "$SERVER" ]; then | ||
35 | for i in "$@"; do | ||
36 | NEXT=$(realpath "$i") | ||
37 | nvim --server "$SERVER" --remote-silent "$NEXT" | ||
38 | done | ||
39 | else | ||
40 | nvim $@ | ||
41 | fi | ||
42 | |||
43 | } | ||
44 | |||
45 | |||
46 | |||