From 1593698fe1efb24126f6d8187394784541b22bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Gallais-Pou?= Date: Wed, 9 Feb 2022 17:15:51 +0100 Subject: [PATCH] extend character limit to 100 characters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 80 character limit is now deprecated[1][2]. This patch extends the character limit to 100 characters. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bdc48fa11e46f867ea4d75fa59ee87a7f48be144 [2] https://lkml.org/lkml/2020/5/29/1038 Signed-off-by: Raphaƫl Gallais-Pou --- plugin/linuxsty.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/linuxsty.vim b/plugin/linuxsty.vim index 6f7e331e88..6871385686 100644 --- a/plugin/linuxsty.vim +++ b/plugin/linuxsty.vim @@ -62,7 +62,7 @@ function s:LinuxFormatting() setlocal tabstop=8 setlocal shiftwidth=8 setlocal softtabstop=8 - setlocal textwidth=80 + setlocal textwidth=100 setlocal noexpandtab setlocal cindent @@ -80,7 +80,7 @@ function s:LinuxHighlighting() highlight default link LinuxError ErrorMsg syn match LinuxError / \+\ze\t/ " spaces before tab - syn match LinuxError /\%>80v[^()\{\}\[\]<>]\+/ " virtual column 81 and more + syn match LinuxError /\%>100v[^()\{\}\[\]<>]\+/ " virtual column 81 and more " Highlight trailing whitespace, unless we're in insert mode and the " cursor's placed right after the whitespace. This prevents us from having