diff options
author | Max Christian Pohle | 2017-10-25 00:16:21 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-10-25 00:16:21 +0200 |
commit | 78154ae2bbf1d3ca8dfa33c06c7a12d746c67028 (patch) | |
tree | f16d7f848a809919deaa36957a1798841f403dec /bashrc | |
parent | d9238988f4e2d9bd443c98a651b6f657877c2cbc (diff) | |
download | vim-karlmarks-78154ae2bbf1d3ca8dfa33c06c7a12d746c67028.tar.bz2 vim-karlmarks-78154ae2bbf1d3ca8dfa33c06c7a12d746c67028.zip |
added additional commands for bashrc (source it from .bashrc)
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 | ||