[battery.vim] Move indicator to non-overwriting position if window big enough

This commit is contained in:
Whisperity
2020-09-29 14:55:03 +02:00
parent 06747d11be
commit 2762f7e6e5
4 changed files with 20 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ The statusline is the colored line at the bottom, which contains the sections
section|meaning (example)
-------|------------------
A | displays the mode + additional flags like crypt/spell/paste (INSERT)
B | VCS information - branch, hunk summary (master)
B | Environment status (VCS information - branch, hunk summary (master), [battery][61] level)
C | filename + read-only flag (~/.vim/vimrc RO)
X | filetype (vim)
Y | file encoding[fileformat] (utf-8[unix])
@@ -66,7 +66,8 @@ For a better look, those sections can be colored differently, depending on vario
[undotree][17], [nerdtree][18], [tagbar][19], [vim-gitgutter][29],
[vim-signify][30], [quickfixsigns][39], [syntastic][5], [eclim][34],
[lawrencium][21], [virtualenv][31], [tmuxline][35], [taboo.vim][37],
[ctrlspace][38], [vim-bufmru][47], [vimagit][50], [denite][51] and more.
[ctrlspace][38], [vim-bufmru][47], [vimagit][50], [denite][51],
[vim.battery][61] and more.
* Looks good with regular fonts and provides configuration points so you can use unicode or powerline symbols.
* Optimized for speed - loads in under a millisecond.
* Extensive suite of themes for popular color schemes including [solarized][23] (dark and light), [tomorrow][24] (all variants), [base16][32] (all variants), [molokai][25], [jellybeans][26] and others.
@@ -191,6 +192,9 @@ vim-airline integrates with a variety of plugins out of the box. These extensio
#### [Vim-CMake][60]
![image](https://user-images.githubusercontent.com/24732205/87788512-c876a380-c83d-11ea-9ee3-5f639f986a8f.png)
#### [vim.battery][61]
![image](https://user-images.githubusercontent.com/1969470/94561399-368b0e00-0264-11eb-94a0-f6b67c73d422.png)
## Extras
vim-airline also supplies some supplementary stand-alone extensions. In addition to the tabline extension mentioned earlier, there is also:
@@ -357,3 +361,4 @@ If you are interested in becoming a maintainer (we always welcome more maintaine
[58]: https://github.com/vim-airline/vim-airline/blob/master/LICENSE
[59]: https://github.com/neoclide/coc-git
[60]: https://github.com/cdelledonne/vim-cmake
[61]: http://github.com/lambdalisue/battery.vim/