[bitbake-devel] [PATCH 0/9] BitBake Vim indentation plugin

chris.laplante at agilent.com chris.laplante at agilent.com
Fri Oct 11 17:52:03 UTC 2019


Hi Martin,

> > It supports indenting variable assignments, Python and shell tasks/functions.
> > To accomplish Python indentation, it uses a hacked-up version of the Python indenter
> > from Vim upstream. The upstream shell indenter is used directly, without
> > modification, however in the future it will be necessary to modify the shell
> > indenter to properly support "fakeroot" shell tasks.
> 
> Thank you. As vim user I'll test this soon.
> 
> Does the above mean that it will use 4 spaces for python and tabs for
> shell tasks like oe-core is using?

It currently doesn't specifically enforce either of those. The plugin is based on autoindent, so the expandtab, tabstop, and shiftwidth are respected. My editor is currently configured for 4 spaces everywhere, and that is used even for shell tasks. Unfortunately I don't know enough about Vim plugins to quickly answer how simple (or possible) it would be to change tab/spaces mode on a per-region basis. I'll add it to my TODO list though.

Thanks,
Chris


More information about the bitbake-devel mailing list