diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-26 17:41:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-26 17:41:47 +0100 |
commit | 2a953fcf107d24229fec8af820ee62c908caafbf (patch) | |
tree | 712409ce22897b9cc1f5a6715c3a269861cb2dd0 /runtime/ftplugin/man.vim | |
parent | 8e59a1e127de38ef311f5064b41d201228703883 (diff) |
Updated runtime files.
Diffstat (limited to 'runtime/ftplugin/man.vim')
-rw-r--r-- | runtime/ftplugin/man.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index dc03211916..87773ed279 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: man " Maintainer: SungHyun Nam <goweol@gmail.com> -" Last Change: 2018 Jul 25 +" Last Change: 2019 Jan 22 " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -206,10 +206,10 @@ func <SID>GetPage(cmdmods, ...) let $MANWIDTH = '' endif " Remove blank lines from top and bottom. - while getline(1) =~ '^\s*$' + while line('$') > 1 && getline(1) =~ '^\s*$' silent keepj norm! ggdd endwhile - while getline('$') =~ '^\s*$' + while line('$') > 1 && getline('$') =~ '^\s*$' silent keepj norm! Gdd endwhile 1 |