mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 14:04:53 +02:00
Updated FAQ (markdown)
parent
ee9e810041
commit
dd0f9beb24
16
FAQ.md
16
FAQ.md
@ -1,3 +1,19 @@
|
||||
#### I have a performance problem....
|
||||
|
||||
Whoa! Everything got slow all of a sudden...
|
||||
|
||||
vim-airline strives to make it easy to use out of the box, which means that by default it will look for all compatible plugins that you have installed and enable the relevant extension.
|
||||
|
||||
Many optimizations have been made such that the majority of users will not see any performance degradation, but it can still happen. For example, users who routinely open very large files may want to disable the tagbar extension, as it can be very expensive to scan for the name of the current function.
|
||||
|
||||
The [minivimrc](https://github.com/bling/minivimrc) project has some helper mappings to troubleshoot performance related issues.
|
||||
|
||||
If you don't want all the bells and whistles enabled by default, you can define a value for g:airline_extensions (e.g. `:let g:airline_extensions = []`). When this variable is defined, only the extensions listed will be loaded; an empty array will disable all extensions.
|
||||
|
||||
Also, you can enable caching of the various syntax highlighting groups. This will try to prevent some of the more expensive `:hi` calls in Vim, which seem to be expensive in the Vim core at the expense of possibly not being hunderet percent correct all the times (especially if you often change highlighting groups yourself using `:hi` commands). To set this up do `:let g:airline_highlighting_cache = 1`. A `:AirlineRefresh` will however clear the cache.
|
||||
|
||||
In addition you might want to check out the [dark_minimal theme](https://github.com/vim-airline/vim-airline-themes/blob/master/autoload/airline/themes/dark_minimal.vim), which does not change highlighting groups once they are defined.
|
||||
|
||||
#### The powerline font symbols are not showing up
|
||||
|
||||
Adding `let g:airline_powerline_fonts = 1` to your vimrc will automatically populate the `g:airline_symbols` dictionary with the proper font glyphs for various symbols.
|
||||
|
Loading…
x
Reference in New Issue
Block a user