comparison runtime/ftplugin/man.vim @ 816:4a79d6d376f0 v7.0c02

updated for version 7.0c02
author vimboss
date Tue, 28 Mar 2006 21:08:56 +0000
parents 3fc0f57ecb91
children 96cd8222a819
comparison
equal deleted inserted replaced
815:c68b7b2b9e07 816:4a79d6d376f0
1 " Vim filetype plugin file 1 " Vim filetype plugin file
2 " Language: man 2 " Language: man
3 " Maintainer: Nam SungHyun <namsh@kldp.org> 3 " Maintainer: Nam SungHyun <namsh@kldp.org>
4 " Last Change: 2003 Dec 24 4 " Last Change: 2006 Mar 28
5 5
6 " To make the ":Man" command available before editing a manual page, source 6 " To make the ":Man" command available before editing a manual page, source
7 " this script from your startup vimrc file. 7 " this script from your startup vimrc file.
8 8
9 " If 'filetype' isn't "man", we must have been called to only define ":Man". 9 " If 'filetype' isn't "man", we must have been called to only define ":Man".
21 " Add mappings, unless the user didn't want this. 21 " Add mappings, unless the user didn't want this.
22 if !exists("no_plugin_maps") && !exists("no_man_maps") 22 if !exists("no_plugin_maps") && !exists("no_man_maps")
23 if !hasmapto('<Plug>ManBS') 23 if !hasmapto('<Plug>ManBS')
24 nmap <buffer> <LocalLeader>h <Plug>ManBS 24 nmap <buffer> <LocalLeader>h <Plug>ManBS
25 endif 25 endif
26 nnoremap <buffer> <Plug>ManBS :%s/.\b//g<CR>:set nomod<CR>'' 26 nnoremap <buffer> <Plug>ManBS :%s/.\b//g<CR>:setl nomod<CR>''
27 27
28 nnoremap <buffer> <c-]> :call <SID>PreGetPage(v:count)<CR> 28 nnoremap <buffer> <c-]> :call <SID>PreGetPage(v:count)<CR>
29 nnoremap <buffer> <c-t> :call <SID>PopPage()<CR> 29 nnoremap <buffer> <c-t> :call <SID>PopPage()<CR>
30 endif 30 endif
31 31
135 endwhile 135 endwhile
136 endif 136 endif
137 endif 137 endif
138 silent exec "edit $HOME/".page.".".sect."~" 138 silent exec "edit $HOME/".page.".".sect."~"
139 " Avoid warning for editing the dummy file twice 139 " Avoid warning for editing the dummy file twice
140 set buftype=nofile noswapfile 140 setl buftype=nofile noswapfile
141 141
142 set ma 142 setl ma
143 silent exec "norm 1GdG" 143 silent exec "norm 1GdG"
144 let $MANWIDTH = winwidth(0) 144 let $MANWIDTH = winwidth(0)
145 silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b" 145 silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b"
146 " Remove blank lines from top and bottom. 146 " Remove blank lines from top and bottom.
147 while getline(1) =~ '^\s*$' 147 while getline(1) =~ '^\s*$'