patch 8.1.1768: man plugin changes setting in current window
Problem: Man plugin changes setting in current window.
Solution: Set options later. (Jason Franklin)
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index fb3f7f9..4591c47 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -174,7 +174,6 @@
else
let open_cmd = a:cmdmods . ' split'
endif
- setl nonu fdc=0
endif
endif
@@ -183,7 +182,7 @@
" Avoid warning for editing the dummy file twice
setl buftype=nofile noswapfile
- setl ma nonu nornu nofen
+ setl fdc=0 ma nofen nonu nornu
silent exec "norm! 1GdG"
let unsetwidth = 0
if empty($MANWIDTH)