liuchengxu / eleline.vim

:herb: Another elegant statusline for vim
MIT License
311 stars 79 forks source link

Add optional vim-fugitive autocmd in README #46

Closed Frederick888 closed 3 years ago

Frederick888 commented 3 years ago

This autocmd removes eleline's cached branch name so that e.g. after a :Git checkout, the branch name in eleline can be updated immediately.

This was mentioned at [1].

[1] https://github.com/liuchengxu/eleline.vim/pull/44#issuecomment-858524921


If I'm not mistaken, this is slightly better than call ElelineGitBranch(1) since it only re-retrieves branch name next the status line updates.