> For the complete documentation index, see [llms.txt](https://dofy.gitbook.io/learn-vim/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dofy.gitbook.io/learn-vim/en/plugins/airline.md).

# Airline & Themes

Airline displays a more user-friendly status bar in Vim, and with a nice color scheme, it's a lot more fun to work with.

## Project address

* Airline <https://github.com/vim-airline/vim-airline>
* Airline Themes <https://github.com/vim-airline/vim-airline-themes>

## Installation

> Add `.vimrc` configuration.

```vim
" Install both plugins at the same time
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes'
```

> Execute `:source ~/.vimrc` in Vim to reload the config file.
>
> Execute `:PlugInstall` to install the Airline and Airline Themes plugins.
>
> Add the following setting to `.vimrc` to make Airline effective.

```vim
set laststatus=2 " Always show status bar

" Airline
let g:airline#extensions#tabline#enabled=1 " enable tab bar
```

> Reload the config file to make it work, if that doesn't work try restarting Vim

You should now see a status bar displayed underneath Vim, displaying information that typically includes **Current Mode**, **Current File**, **File Type**, **File Encoding**, and **Current Column**.

Since we also have the Airline Themes plugin installed, we can set the Airline style as follows.

> Execute `:AirlineTheme simple` to apply the `simple` style, or modify the `.vimrc` file to add a file like The following configuration:

```vim
let g:airline_theme='simple'
```

Airline Themes contains a large number of styles, which can be found in the project's [Styles folder](https://github.com/vim-airline/vim-airline-themes/tree/master/autoload/airline/themes) The styles listed there can be applied.

For more details and renderings, please refer to the [project address](https://github.com/vim-airline/vim-airline).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dofy.gitbook.io/learn-vim/en/plugins/airline.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
