summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-03-03 08:28:47 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-03-03 08:28:47 +0100
commita36f88a6aa167a2b450178a80adf11d7ded2f0af (patch)
treeb00520c8c46ad34b304582b0b4ba30b6c51502e0
parent5ff92d985e4d1aa6b749efa9a5716045010e90b7 (diff)
downloadvimrc-a36f88a6aa167a2b450178a80adf11d7ded2f0af.tar.gz
vimrc-a36f88a6aa167a2b450178a80adf11d7ded2f0af.tar.bz2
vimrc-a36f88a6aa167a2b450178a80adf11d7ded2f0af.zip
Selectively use fugitive status line
-rw-r--r--dotvimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dotvimrc b/dotvimrc
index 4e535bf..083c95e 100644
--- a/dotvimrc
+++ b/dotvimrc
@@ -175,7 +175,9 @@ set statusline+=%{((exists(\"+bomb\")\ &&\ &bomb)?\"B,\":\"\")}]\ " BOM
set statusline+=%{strftime('%a\ %b\ %e\ %H:%M')}\ " hour
"set statusline+=%{SyntaxItem()} " syntax highlight group under cursor
set statusline+=%= " right align
-set statusline+=%{fugitive#statusline()}\ " git branch
+if !empty(glob("bundle/vim-fugitive/plugin/fugitive.vim"))
+ set statusline+=%{fugitive#statusline()}\ " git branch
+endif
set statusline+=0x%-8B\ " current char
set statusline+=%-14.(%l,%c%V%)\ %<%P " offset