Mercurial > vim
diff runtime/ftplugin/man.vim @ 1125:96cd8222a819
updated for version 7.1a
author | vimboss |
---|---|
date | Sat, 05 May 2007 18:24:42 +0000 |
parents | 4a79d6d376f0 |
children | 53938adac247 |
line wrap: on
line diff
--- 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