375
|
1 " Vim filetype plugin file
|
32984
|
2 " Language: OpenSSH client configuration file
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2008-07-09
|
375
|
5
|
|
6 if exists("b:did_ftplugin")
|
|
7 finish
|
|
8 endif
|
|
9 let b:did_ftplugin = 1
|
|
10
|
1698
|
11 let s:cpo_save = &cpo
|
|
12 set cpo&vim
|
|
13
|
32984
|
14 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
|
|
15 let b:undo_ftplugin = 'setlocal com< cms< fo<'
|
375
|
16
|
32984
|
17 if has('unix') && executable('less')
|
|
18 if !has('gui_running')
|
|
19 command -buffer -nargs=1 Sman
|
|
20 \ silent exe '!' . 'LESS= MANPAGER="less --pattern=''^\s+' . <q-args> . '$'' --hilite-search" man ' . 'ssh_config' |
|
|
21 \ redraw!
|
|
22 elseif has('terminal')
|
|
23 command -buffer -nargs=1 Sman
|
|
24 \ silent exe 'term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+' . <q-args> . '$', '\') . ''' --hilite-search" man ' . 'ssh_config'
|
|
25 endif
|
|
26 if exists(':Sman') == 2
|
|
27 setlocal iskeyword+=-
|
|
28 setlocal keywordprg=:Sman
|
|
29 let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword<'
|
|
30 endif
|
|
31 endif
|
1698
|
32
|
|
33 let &cpo = s:cpo_save
|
|
34 unlet s:cpo_save
|