When linters such as ALE report errors, airline shows this in a rather ugly
default shade of red. This change makes errors and warnings use the same colour
scheme.
hybrid.vim theme for airline uses crimson color for status line if any
modifications to the buffer are detected. It looks annoying since we
deal with it every day. Let's do not be too obsessive here and get rid
of special color at all - fortunately it's redundant as we have [+] sign
to emphasize that unsaved changes are detected.
http://imgur.com/a/DAmmd
hybrid.vim theme for airline uses pretty strange palette for both visual
and insert modes. Despite looking *strange*, one may consider it as a
design decision, however, the replace mode uses the same palette for
statusline as the normal mode and hence looks consistent. Visual
comparison could is located here:
http://imgur.com/a/YoeMS
This patch makes things consistent and use the same colors for the
status line, and different colors for mode indicator.
base16_shell theme for vim-airline matches an active Base16 Shell
theme.
It should be used in combination with Base16 Shell, which sets the
correct colors in the terminal:
(https://github.com/chriskempson/base16-shell).
The colors used in this theme are within the 21 term colors set by
Base16 Shell. The theme supports 2 options described in the docs.
Ref: https://github.com/blueyed/vim-colors-solarized/commit/92f2f994
This also defines 'g' (gui) colors, which might not be necessary and
cause unnecessary overhead (at least it caused an error when given an
invalid color (RGB without hash symbol), but was added for completeness.
- darken green background of INSERT (to match original)
- restore orange modified highlight
- unify 2nd sections, deduplicate 3rd sections
- make sides of inactive bar brighter for better readability
Using the "CursorLine" highlight style was not a good idea for the status line,
because it conflicts when the cursor line is next to the status line of an
inactive window.
Fortunately, the tabline extension allows for specific color customization.
This explicitly defines a color for a selected tab and a selected buffer.
Currently, vim-airline uses hard-coded '\s$' to check for trailing
whitespace. However you might want to check for different values.
Therefore, set the variable
g:airline#extensions#whitespace#trailing_regexp to the required regexp
value.
closes#663
1) allow for custom formatting of the output of the wordcount formatter
This allows for formatting numbers correctly e.g. 1,042 in English
locale and 1.042 in German locale.
2) cache values, so that no on every cursor move the wordcount needs to
be recalculated.
this issue fixes#758
The problem was, that a given color list ['','',0,'',''] was given to
the airline#highlighter#exec() function. This resulted in the following
comparison:
if (get(colors,2,'') != '') ? 'ctermfg='.colors[2] : ''
which, since echo 0 != '' returns falls will return a single:
:hi group
and no color codes given and therefore, Vim would output the
current highlighting group.
Use isnot# as comparison to fix this issue.
This fixes#511
It allows the virtualenv plugin to call back and tell the airline plugin
to update the statusline. Therefore, the new function
airline#extensions#virtualenv#update() is provided. However, to properly
fix this issue, the virtualenv plugin needs to call this function.
Second, depending on $VIRTUAL_ENV is not safe, since the virtualenv
plugin might define it itsself when calling :VirtualEnvActivate
Therefore skip this test and just test for existance of he
:VirtualEnvList command.
Prior to this change airline set the function for getting hunks only once,
which works as long as you don't use simlar plugins for different VCS at the
same time.
If that was the case, only one plugin would have won, depending on the first
buffer handled by these plugins. And although the code for the other plugin
was run every time, you would never see the actual line changes, since airline
didn't even bother checking.
Now these plugins can be used side-by-side in the same Vim instance, e.g.
gitgutter for, well, git and signify for the rest.