mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 05:55:38 +02:00
Answered: Where should I store my own custom theme?
parent
f21648245e
commit
a9eeee494a
11
FAQ.md
11
FAQ.md
@ -67,9 +67,16 @@ Try adding `set fillchars+=stl:\ ,stlnc:\ ` to your vimrc. Also, make sure you'
|
||||
|
||||
vim-airline internally uses autocmds to change colors, and the order of autocmds may change from one configuration to the next. Sometimes this means that if you use things like `BufEnter` you may find that the colors go out of sync. vim-airline exposes a command `AirlineRefresh` which you can use to reload all the colors manually.
|
||||
|
||||
#### Where should I store my custom theme file?
|
||||
#### Where should I store my own custom theme?
|
||||
|
||||
...
|
||||
You could simply edit `dark.vim` in place, since this is the default theme.
|
||||
|
||||
But (especially if you are using a bundler to install airline), you may prefer to keep your theme separate:
|
||||
|
||||
1. Copy `dark.vim` into `~/.vim/autoload/airline/themes/your_theme_name.vim`
|
||||
2. Open that file and search-replace: `:%s/#dark#/#your_theme_name#/g`
|
||||
3. (Optionally) test it with: `:AirlineTheme your_theme_name`
|
||||
4. To make it load on startup, add to your `.vimrc`: `:let g:airline_theme='your_theme_name'`
|
||||
|
||||
[a]: https://github.com/Lokaltog/vim-powerline
|
||||
[b]: https://github.com/Lokaltog/powerline
|
||||
|
Loading…
x
Reference in New Issue
Block a user