[vim/vim] editorconfig plugin and git commit messages (Discussion #20940)

delreluca (Vim Github Repository) <[email protected]> Tue, 04 Aug 2026 13:04:52 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/repo-discussions/[email protected]>

----==_mimepart_6a7245e49de04_b6118064933b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It seems to me that using the editorconfig plugin applies .editorconfig eve=
n when vim is used as git commit message editor.

I noticed this while working in a CRLF repo. That completely messed up [my =
messages with `commit.verbose`](https://git-scm.com/docs/git-commit#Documen=
tation/git-commit.txt---verbose) (which include a separator line for the ig=
nored verbose part, which apparently requires LF to work).

The line length setting is also applied, which changes the default automati=
c line breaks.

Would this be considered works as intended or should we exempt `ft=3Dgitcom=
mit` from editorconfig?

--=20
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/discussions/20940
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/repo-discussions/[email protected]>

--=20
--=20
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---=20
You received this message because you are subscribed to the Google Groups "=
vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim=
/vim/repo-discussions/20940%40github.com.

----==_mimepart_6a7245e49de04_b6118064933b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<p></p>
<p dir=3D"auto">It seems to me that using the editorconfig plugin applies .=
editorconfig even when vim is used as git commit message editor.</p>
<p dir=3D"auto">I noticed this while working in a CRLF repo. That completel=
y messed up <a href=3D"https://git-scm.com/docs/git-commit#Documentation/gi=
t-commit.txt---verbose" rel=3D"nofollow">my messages with <code class=3D"no=
translate">commit.verbose</code></a> (which include a separator line for th=
e ignored verbose part, which apparently requires LF to work).</p>
<p dir=3D"auto">The line length setting is also applied, which changes the =
default automatic line breaks.</p>
<p dir=3D"auto">Would this be considered works as intended or should we exe=
mpt <code class=3D"notranslate">ft=3Dgitcommit</code> from editorconfig?</p=
>

<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&mda=
sh;<br />Reply to this email directly, <a href=3D"https://github.com/vim/vi=
m/discussions/20940">view it on GitHub</a>, or <a href=3D"https://github.co=
m/notifications/unsubscribe-auth/ACY5DGBLJIYWWFW2QGIPG5L5II6WJAVCNFSNUABHKJ=
SXA33TNF2G64TZHM2DAOJZG42DQMR3IRUXGY3VONZWS33OHMYTANJVGM2DIM5BOYBA">unsubsc=
ribe</a>.<br />Triage notifications, keep track of coding agent tasks and r=
eview pull requests on the go with GitHub Mobile for <a href=3D"https://git=
hub.com/notifications/mobile/ios/ACY5DGCX76KCKWH2CDCCGM35II6WJA5CNFSNUABBM5=
UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63RPGEYDKNJTGQ2DHJTSMVQXG33OVJZXKYTTMNZGS=
YTFMSSWK5TFNZ2KUZTPN52GK4S7NFXXG">iOS</a> and <a href=3D"https://github.com=
/notifications/mobile/android/ACY5DGFN4RZZFAHFFAPLCXT5II6WJA5CNFSNUABBM5UWI=
ORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63RPGEYDKNJTGQ2DHJTSMVQXG33OVJZXKYTTMNZGSYTF=
MSSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA">Android</a>. Download it today!
<br />You are receiving this because you are subscribed to this thread.<img=
 src=3D"https://github.com/notifications/beacon/ACY5DGA752AJ242J5GFCRYT5II6=
WJBFCNFSM6AAAAAC43KWY46WGG33NNVSW45C7OR4XAZNKIRUXGY3VONZWS33OVJRW63LNMVXHIX=
3JMTHABIIIMOTHEZLBONXW5KTTOVRHGY3SNFRGKZA.gif" height=3D"1" width=3D"1" alt=
=3D"" /><span style=3D"color: transparent; font-size: 0; display: none; vis=
ibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-wid=
th: 0; max-height: 0; mso-hide: all">Message ID: <span>&lt;vim/vim/repo-dis=
cussions/20940</span><span>@</span><span>github</span><span>.</span><span>c=
om&gt;</span></span></p>
<script type=3D"application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/vim/vim/discussions/20940",
"url": "https://github.com/vim/vim/discussions/20940",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>

<p></p>

-- <br />
-- <br />
You received this message from the &quot;vim_dev&quot; maillist.<br />
Do not top-post! Type your reply below the text you are replying to.<br />
For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt=
p://www.vim.org/maillist.php</a><br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;vim_dev&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">vim_dev+uns=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_dev/vim/vim/repo-discussions/20940%40github.com?utm_medium=3Demail&utm_=
source=3Dfooter">https://groups.google.com/d/msgid/vim_dev/vim/vim/repo-dis=
cussions/20940%40github.com</a>.<br />

----==_mimepart_6a7245e49de04_b6118064933b--