Generate the list of symbols for vim & nano syntax files using docs data + jinja2. Also refactored the doc handling a bit.