aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-10-25 00:16:21 +0200
committerMax Christian Pohle2017-10-25 00:16:21 +0200
commit78154ae2bbf1d3ca8dfa33c06c7a12d746c67028 (patch)
treef16d7f848a809919deaa36957a1798841f403dec
parentd9238988f4e2d9bd443c98a651b6f657877c2cbc (diff)
downloadvim-karlmarks-78154ae2bbf1d3ca8dfa33c06c7a12d746c67028.tar.bz2
vim-karlmarks-78154ae2bbf1d3ca8dfa33c06c7a12d746c67028.zip
added additional commands for bashrc (source it from .bashrc)
-rw-r--r--bashrc22
1 files changed, 22 insertions, 0 deletions
diff --git a/bashrc b/bashrc
new file mode 100644
index 0000000..4f51625
--- /dev/null
+++ b/bashrc
@@ -0,0 +1,22 @@
1
2gvim () { /bin/gvim $(if [[ "$#" > 0 && `/bin/gvim --serverlist | wc -l` ]]; then echo --remote; fi) $@; }
3vim () { /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
12export 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" -; }
14alias git='git -c color.ui=false'
15export 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
..