Skip to content

Instantly share code, notes, and snippets.

@bag-man
Created February 11, 2016 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bag-man/b95ca553d63d18223ad7 to your computer and use it in GitHub Desktop.
Save bag-man/b95ca553d63d18223ad7 to your computer and use it in GitHub Desktop.
Improve status line formatting in vim-fugitive
index a2cb700..2c44b3d 100644
--- a/plugin/fugitive.vim
+++ b/plugin/fugitive.vim
@@ -3012,7 +3012,7 @@ function! fugitive#statusline(...) abort
if &statusline =~# '%[MRHWY]' && &statusline !~# '%[mrhwy]'
return ',GIT'.status
else
- return '[Git'.status.']'
+ return ' '.status
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment