summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/man.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ftplugin/man.vim')
-rw-r--r--runtime/ftplugin/man.vim11
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index 04964a5496..88d7bca25c 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: man
" Maintainer: Nam SungHyun <namsh@kldp.org>
-" Last Change: 2006 Mar 28
+" Last Change: 2006 Dec 04
" To make the ":Man" command available before editing a manual page, source
" this script from your startup vimrc file.
@@ -119,9 +119,7 @@ func <SID>GetPage(...)
if &filetype != "man"
let thiswin = winnr()
exe "norm! \<C-W>b"
- if winnr() == 1
- new
- else
+ if winnr() > 1
exe "norm! " . thiswin . "\<C-W>w"
while 1
if &filetype == "man"
@@ -129,11 +127,14 @@ func <SID>GetPage(...)
endif
exe "norm! \<C-W>w"
if thiswin == winnr()
- new
break
endif
endwhile
endif
+ if &filetype != "man"
+ new
+ setl nonu fdc=0
+ endif
endif
silent exec "edit $HOME/".page.".".sect."~"
" Avoid warning for editing the dummy file twice