Re: [PATCH 2/2] streamline_config.pl: Add softtabstop=4 for vim users
From: Masahiro Yamada
Date: Wed Mar 24 2021 - 02:02:47 EST
On Tue, Mar 23, 2021 at 6:40 AM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
>
> The tab stop for Perl files is by default (at least in emacs) to be 4
> spaces, where a tab is used for all 8 spaces. Add a local variable comment
> to make vim do the same by default, and this will help keep the file
> consistent in the future when others edit it via vim and not emacs.
>
> Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
Documentation/process/coding-style.rst says "do not do this".
Rather, I want to remove this ugly stuff entirely.
https://lore.kernel.org/patchwork/patch/1401439/
Adding .editorconfig seems OK to me, but
Doing this in individual files in an editor-specific
manner is a horror.
> ---
> scripts/kconfig/streamline_config.pl | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
> index 059061b6daef..044829972ba5 100755
> --- a/scripts/kconfig/streamline_config.pl
> +++ b/scripts/kconfig/streamline_config.pl
> @@ -702,3 +702,5 @@ foreach my $module (keys(%modules)) {
> print STDERR "\n";
> }
> }
> +
> +# vim: softtabstop=4
> --
> 2.30.1
>
>
--
Best Regards
Masahiro Yamada