[vim/vim] ft: add j2 as jinja (PR #18612)

6 views
Skip to first unread message

FouMalade

unread,
Oct 20, 2025, 6:27:17 PM10/20/25
to vim/vim, Subscribed

Recognizes .j2 files as Jinja templates by adding a "j2": "jinja" mapping in vim/runtime/autoload/dist/ft.vim, enabling syntax highlighting.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18612

Commit Summary

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18612@github.com>

FouMalade

unread,
Oct 21, 2025, 10:24:56 AM10/21/25
to vim/vim, Push

@FouMalade pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18612/before/a8c0733f7127a0acd65758c2ab676c3b57771224/after/b081eb6c825d9beff0e42f555fef819a9297846b@github.com>

Christian Brabandt

unread,
Oct 24, 2025, 11:07:58 AM10/24/25
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18612)

Thanks, but is this the right thing to do? Shouldn't jinja syntax applied to any existing filetypes? e.g. I have seen foobar.html.j2 or application.properties.j2 which hints that it should use the existing filetype like html or jproperties in addition to the jinja template, no? Perhaps it should be handled like doxygen?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18612/c3443647266@github.com>

Christian Brabandt

unread,
Jun 13, 2026, 4:18:13 PM (13 hours ago) Jun 13
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18612)

this has stalled, so closing


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18612/c4699672505@github.com>

Reply all
Reply to author
Forward
0 new messages