comparison runtime/ftplugin/man.vim @ 17541:d9aa921b7198 v8.1.1768

patch 8.1.1768: man plugin changes setting in current window commit https://github.com/vim/vim/commit/bca9c301936c9ba4ee67528f81393debf83844b9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 28 15:28:45 2019 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Jul 2019 15:30:05 +0200
parents d2a834aa7cc0
children 03b854983b14
comparison
equal deleted inserted replaced
17540:63ae37bd4cfd 17541:d9aa921b7198
172 let open_cmd = 'split' 172 let open_cmd = 'split'
173 endif 173 endif
174 else 174 else
175 let open_cmd = a:cmdmods . ' split' 175 let open_cmd = a:cmdmods . ' split'
176 endif 176 endif
177 setl nonu fdc=0
178 endif 177 endif
179 endif 178 endif
180 179
181 silent execute open_cmd . " $HOME/" . page . '.' . sect . '~' 180 silent execute open_cmd . " $HOME/" . page . '.' . sect . '~'
182 181
183 " Avoid warning for editing the dummy file twice 182 " Avoid warning for editing the dummy file twice
184 setl buftype=nofile noswapfile 183 setl buftype=nofile noswapfile
185 184
186 setl ma nonu nornu nofen 185 setl fdc=0 ma nofen nonu nornu
187 silent exec "norm! 1GdG" 186 silent exec "norm! 1GdG"
188 let unsetwidth = 0 187 let unsetwidth = 0
189 if empty($MANWIDTH) 188 if empty($MANWIDTH)
190 let $MANWIDTH = winwidth(0) 189 let $MANWIDTH = winwidth(0)
191 let unsetwidth = 1 190 let unsetwidth = 1