]> git.rmz.io Git - dotfiles.git/commitdiff
vim/man: set some defaults for man files similar to :help
authorSamir Benmendil <me@rmz.io>
Tue, 26 Jan 2021 00:01:16 +0000 (00:01 +0000)
committerSamir Benmendil <me@rmz.io>
Tue, 26 Jan 2021 00:25:01 +0000 (00:25 +0000)
Width of 80 chars is standard or something, make sure the window is wide
enough for that too too.

vim/ftplugin/man.vim

index 6f5fe3de6e5f5ed0a68e14afc8dba729b0f52737..bd6528a9df1098434e5af07402393068568d089d 100644 (file)
@@ -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