diff options
author | Anmol Sethi <nhooyr@users.noreply.github.com> | 2016-08-07 17:30:05 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-08-07 17:30:05 -0400 |
commit | 6050d3f15dea67759afa4bcc68a3cd9feeaabe98 (patch) | |
tree | 77ee73525165efcbc7aa8bd0d1b8db29dc253102 /runtime/ftplugin | |
parent | b85bae4cac17258dcc73ad8a35a74a9c0935f2ed (diff) | |
download | rneovim-6050d3f15dea67759afa4bcc68a3cd9feeaabe98.tar.gz rneovim-6050d3f15dea67759afa4bcc68a3cd9feeaabe98.tar.bz2 rneovim-6050d3f15dea67759afa4bcc68a3cd9feeaabe98.zip |
man.vim: handle 'gdefault' (#5182)
Fixes #5181
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/man.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 08d5da0fe4..614e1cb161 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -11,7 +11,7 @@ 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 |