From 467df52c667dfb9fb70a1d82aa1dc27542a26462 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 25 Jan 2025 01:08:03 +0100 Subject: [PATCH] vim:ftplug:man: Fix wrapping due to signcolumn man(1) will assume it can use the full width of the terminal when hard-wrapping the lines. When signcolumn is enabled the width is one cell smaller and thus, lines that have a character in the last column will be wrapped by vim (i.e. almost all of them). --- .config/vim/ftplugin/man.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/vim/ftplugin/man.vim b/.config/vim/ftplugin/man.vim index 9f0da57..08f4736 100644 --- a/.config/vim/ftplugin/man.vim +++ b/.config/vim/ftplugin/man.vim @@ -1 +1,7 @@ setlocal nospell + +" man(1) will assume it can use the full width of the terminal when +" hard-wrapping the lines. When signcolumn is enabled the width is one cell +" smaller and thus, lines that have a character in the last column will be +" wrapped by vim (i.e. almost all of them). +setlocal signcolumn=no