Re: [PATCH v4] Add .editorconfig file for basic formatting

From: Greg KH
Date: Tue Jun 11 2024 - 02:45:01 EST


On Mon, Jun 03, 2024 at 09:18:53AM -0300, Jason Gunthorpe wrote:
> On Sun, Jun 02, 2024 at 05:30:51PM +0200, Mateusz Guzik wrote:
>
> > As is I think the config mostly gets in the way and most people have a
> > setup which does not use it (for example my vim does not). Alternatively
> > maye it is neovim which is overzalous here and other editors don't treat
> > the entire file. If there is a way to convince the thing to only tend to
> > whitespace issues in edited lines that would be great.
>
> Yes, I think that is quite overzealous, I'd view it as a vim issue.

What? No, vim is doing exactly what it is asked for here, it "trims all
whitespace" when saving the file.

I too just ran into this today, and it's a pain. This needs to be
fixed, sorry.

greg k-h