Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add airline support #4

Closed
lifepillar opened this issue Nov 1, 2017 · 3 comments
Closed

Add airline support #4

lifepillar opened this issue Nov 1, 2017 · 3 comments

Comments

@lifepillar
Copy link
Owner

lifepillar commented Nov 1, 2017

(Original issue from @jordwalke at #2)

Should this template include vim-airline support?

@lifepillar lifepillar mentioned this issue Nov 1, 2017
@lifepillar
Copy link
Owner Author

I have addressed this by implementing “aux file blocks”, which generalize the idea of documentation blocks. Aux file blocks can be used to generate any additional external files. If you put something like this in your template:

auxfile autoload/airline/themes/mycolorsheme.vim
" Anything can go here
endauxfile

then :Colortemplate path/to/output/dir will create a file at the specified path, relative to the output directory. The content between auxfile and endauxfile is interpolated as in verbatim blocks, so you may use, for example, @shortname to refer to the name of your colorscheme, or things like @guiblack, @term16black, @term256black to refer to the GUI value, base-16 value, base-256 value, respectively, of a color called “black”.

This feature is not documented yet, but it should be working fine.

Now, I am not using Airline or any other status line plugins, so I am not going to create a template for it, but I will gladly accept pull requests. vim-airline-themes might be a good starting point.

@wadkar
Copy link

wadkar commented Apr 8, 2020

This is cool. Let me see if I can add something for this to the FAQ or create a "vim-colortemplate" theme in vim-airline-themes.

@lifepillar
Copy link
Owner Author

I am closing this, as aux files address the issue in the general way. If someone feels like submitting an aux file template specifically for Airline or other plugins, they may open a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants