[vim/vim] Set filetype=sh for xinitrc files (PR #20419)

3 views
Skip to first unread message

Enrico Maria De Angelis

unread,
Jun 3, 2026, 2:52:17 AM (yesterday) Jun 3
to vim/vim, Subscribed

According to this page, ~/.xinitrc is an actual shell script, so I think it should be given filetype=sh, whereas currently it is given filetype=conf by this line:
https://github.com/vim/vim/blob/f1ed84158ab80240c42c9f2356767cad448ca151/runtime/filetype.vim#L1649

I'm also matching xinitrc files in other locations.


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

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

Commit Summary

  • 66eb705 Set filetype=sh for xinitrc files

File Changes

(1 file)

Patch Links:


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/20419@github.com>

Christian Brabandt

unread,
Jun 3, 2026, 2:01:08 PM (yesterday) Jun 3
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20419)

Thanks, I'll also add a test for this.


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/20419/c4615302423@github.com>

Reply all
Reply to author
Forward
0 new messages