<commit_before># Airline themes

Before creating the airline theme you need at least one color template in `estilo/themes` folder. Then proceed to add the blank airline template from the command line:

```sh
npm run add-template -- addons/airline
```

This command will create `airline.yml` file in `estilo/addons` directory of your project. Open it, it will look like this:

```yml
normal1: ''
normal2: ''
normal3: ''
inactive1: ''
inactive2: ''
inactive3: ''
insert1: ''
insert2: ''
insert3: ''
replace1: ''
replace2: ''
replace3: ''
visual1: ''
visual2: ''
visual3: ''
```

Every property in the template is composed by a name and a number, they represents how a part of the status line will look in a particular vim mode. That means the first line defines the style of the part 1 of the bar in normal mode, and so on.

Part 1 represents the first and the last block of the status bar, part 2 the second and fourth, and the part 3 is for the center block (the third one).

![airline blocks](https://cloud.githubusercontent.com/assets/829859/16402004/55f3682c-3ce9-11e6-8bd9-eaafbaaccb2e.png)

Go to the first definition and fill its value inside the quotes (`''`), write the foreground and the background color names separated by a space (these ones should be in your color template). It should look something like this:

```yml
normal1: 'myblue mydark'
```

Then set the rest of the properties. When you are done, you can render your color scheme as usually (`npm run build`), and **Estilo** will create so many airline themes as color templates you created in `estilo/themes`.

## Activating the theme

Open your vim config file and add the next lines:

```viml
let g:PKG_NAME_airline = 1
let g:airline_theme = 'MY_COLOR_SCHEME_NAME'
```

Replace `PKG_NAME` with the name of your package (the name from `package.json`), and `MY_COLOR_SCHEME_NAME` with the name of the colorscheme you want to activate.

Remember to add instructions to the `README` of your project before you publish it.<commit_msg>Docs: fix syntax highlighting in airline config<commit_after># Airline themes

Before creating the airline theme you need at least one color template in `estilo/themes` folder. Then proceed to add the blank airline template from the command line:

```sh
npm run add-template -- addons/airline
```

This command will create `airline.yml` file in `estilo/addons` directory of your project. Open it, it will look like this:

```yml
normal1: ''
normal2: ''
normal3: ''
inactive1: ''
inactive2: ''
inactive3: ''
insert1: ''
insert2: ''
insert3: ''
replace1: ''
replace2: ''
replace3: ''
visual1: ''
visual2: ''
visual3: ''
```

Every property in the template is composed by a name and a number, they represents how a part of the status line will look in a particular vim mode. That means the first line defines the style of the part 1 of the bar in normal mode, and so on.

Part 1 represents the first and the last block of the status bar, part 2 the second and fourth, and the part 3 is for the center block (the third one).

![airline blocks](https://cloud.githubusercontent.com/assets/829859/16402004/55f3682c-3ce9-11e6-8bd9-eaafbaaccb2e.png)

Go to the first definition and fill its value inside the quotes (`''`), write the foreground and the background color names separated by a space (these ones should be in your color template). It should look something like this:

```yml
normal1: 'myblue mydark'
```

Then set the rest of the properties. When you are done, you can render your color scheme as usually (`npm run build`), and **Estilo** will create so many airline themes as color templates you created in `estilo/themes`.

## Activating the theme

Open your vim config file and add the next lines:

```vim
let g:PKG_NAME_airline = 1
let g:airline_theme = 'MY_COLOR_SCHEME_NAME'
```

Replace `PKG_NAME` with the name of your package (the name from `package.json`), and `MY_COLOR_SCHEME_NAME` with the name of the colorscheme you want to activate.

Remember to add instructions to the `README` of your project before you publish it.
{'fraction_non_alphanumeric': 0.08492201039861352, 'fraction_numerical': 0.024263431542461005, 'mean_word_length': 4.557083906464924, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3548642', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1166, 'n_words': 585}