aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/man.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ftplugin/man.vim')
-rw-r--r--runtime/ftplugin/man.vim7
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index a45a380eb2..614e1cb161 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -11,21 +11,20 @@ let s:pager = 0
if has('vim_starting')
let s:pager = 1
" remove all those backspaces
- silent keeppatterns keepjumps %substitute,.\b,,ge
+ silent execute 'keeppatterns keepjumps %substitute,.\b,,e'.(&gdefault?'':'g')
if getline(1) =~# '^\s*$'
silent keepjumps 1delete _
else
keepjumps 1
endif
- " This is not perfect.See `man glDrawArraysInstanced`. Since the title is
+ " This is not perfect. See `man glDrawArraysInstanced`. Since the title is
" all caps it is impossible to tell what the original capitilization was.
- execute 'file '.'man://'.tolower(matchstr(getline(1), '^\S\+'))
+ execute 'file man://'.tolower(matchstr(getline(1), '^\S\+'))
endif
setlocal buftype=nofile
setlocal noswapfile
setlocal bufhidden=hide
-setlocal nobuflisted
setlocal nomodified
setlocal readonly
setlocal nomodifiable