From 8048c7dba404c70b61194762c6aee55d8839156d Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 26 Jan 2021 00:01:16 +0000 Subject: [PATCH] vim/man: set some defaults for man files similar to :help Width of 80 chars is standard or something, make sure the window is wide enough for that too too. --- vim/ftplugin/man.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/ftplugin/man.vim b/vim/ftplugin/man.vim index 6f5fe3d..bd6528a 100644 --- a/vim/ftplugin/man.vim +++ b/vim/ftplugin/man.vim @@ -1 +1,8 @@ setlocal nolist +setlocal textwidth=80 +setlocal listchars-=extends:❯,precedes:❮ +setlocal sidescroll=0 +setlocal sidescrolloff=0 +wincmd L +vertical resize 80 +normal ze -- 2.48.1