mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 22:15:28 +02:00
add question about skip_empty variable,
parent
3a1d2248ca
commit
63be1374ff
29
FAQ.md
29
FAQ.md
@ -1,3 +1,7 @@
|
||||
#### vim-airline doesn't appear until I create a new split
|
||||
|
||||
Add `set laststatus=2` to your vimrc.
|
||||
|
||||
#### 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.
|
||||
@ -65,10 +69,6 @@ Certain themes are derived from the active colorscheme by extracting colors from
|
||||
|
||||
You need [fugitive](https://github.com/tpope/vim-fugitive) to see the current git branch. If you have it and still don't see it then you are probably using version 1.2, which is very old. vim-airline relies on a `fugitive#head()` function. Download v2 from the [project page][d].
|
||||
|
||||
#### vim-airline doesn't appear until I create a new split
|
||||
|
||||
Add `set laststatus=2` to your vimrc.
|
||||
|
||||
#### vim-bufferline is printing to the statusline as well as the command bar
|
||||
|
||||
You can disable automatic echoing by adding `let g:bufferline_echo = 0` to your vimrc.
|
||||
@ -105,14 +105,6 @@ But (especially if you are using a bundler to install airline), you may prefer t
|
||||
4. To make it load on startup, add to your `.vimrc`:
|
||||
`:let g:airline_theme='your_theme_name'`
|
||||
|
||||
#### I am seeing lot of `AirlineTabRefresh` messages when creating new splits. How can I get rid of them?
|
||||
|
||||
It seems, sometimes Vim does not create the correct mapping. Please add this mapping to your vimrc file:
|
||||
|
||||
`:noremap <silent> <Plug>AirlineTablineRefresh :set mod!<CR>`
|
||||
|
||||
If you happen to know, how to reproduce the issue on how to make Vim create those invalid maps, please mention in ticket [1029](https://github.com/vim-airline/vim-airline/issues/1029).
|
||||
|
||||
#### Can I get better font rendering in Windows gvim?
|
||||
|
||||
If you are using a gVim with the +directx interface enabled at compile time, you can use DirectX rendering. This will provide better font rendering for the powerline glyphs. You can enable this using:
|
||||
@ -128,9 +120,18 @@ For screenshots see ticket [1031](https://github.com/vim-airline/vim-airline/iss
|
||||
[e]: https://github.com/vim-airline/vim-airline/commit/d7fd8ca649e441b3865551a325b10504cdf0711b
|
||||
[n]: http://vim.wikia.com/wiki/256_colors_in_vim
|
||||
|
||||
#### Make Airline seems like powerline
|
||||
#### How can I make Airline look like powerline?
|
||||
|
||||
If you want your airline looks like a new powerline install (i.e all options by default), you only have to add
|
||||
this option to your `.vimrc`
|
||||
|
||||
`let g:airline_section_z = airline#section#create(['windowswap', '%3p%% ', 'linenr', ':%3v']) `
|
||||
`let g:airline_section_z = airline#section#create(['windowswap', '%3p%% ', 'linenr', ':%3v']) `
|
||||
|
||||
#### How can I remove those angle at the end?
|
||||
|
||||
This happens, because the warning and error sections are empty. However, because of the way the airline sections are evaluated, those separators will always be shown.
|
||||
You can disable them, if you put this option into your `.vimrc`
|
||||
|
||||
`let g:airline_skip_empty_sections = 1`
|
||||
|
||||
This poses a small performance penalty, however.
|
Loading…
x
Reference in New Issue
Block a user