blob: 1cc4e609b00093a4662642a82bfa6c8e9a1868aa [file] [log] [blame]
Bram Moolenaar42eeac32005-06-29 22:40:58 +00001" Vim filetype plugin file
Konfektf86568f2024-09-19 19:34:40 +02002" Language: OpenSSH client configuration file
3" Maintainer: This runtime file is looking for a new maintainer.
4" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
5" Latest Revision: 2024-09-19 (simplify keywordprg #15696)
Bram Moolenaar42eeac32005-06-29 22:40:58 +00006
7if exists("b:did_ftplugin")
8 finish
9endif
10let b:did_ftplugin = 1
11
Bram Moolenaare37d50a2008-08-06 17:06:04 +000012let s:cpo_save = &cpo
13set cpo&vim
14
Bram Moolenaar0dc065e2005-07-04 22:49:24 +000015setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
Enno2f25e402023-08-23 21:27:50 +020016let b:undo_ftplugin = 'setlocal com< cms< fo<'
17
Konfektf86568f2024-09-19 19:34:40 +020018if has('unix') && executable('less') && exists(':terminal') == 2
19 command -buffer -nargs=1 SshconfigKeywordPrg
20 \ silent exe 'term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+' . <q-args> . '$', '\') . ''' --hilite-search" man ' . 'ssh_config'
21 setlocal iskeyword+=-
22 setlocal keywordprg=:SshconfigKeywordPrg
23 let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer SshconfigKeywordPrg'
Enno2f25e402023-08-23 21:27:50 +020024endif
Bram Moolenaare37d50a2008-08-06 17:06:04 +000025
26let &cpo = s:cpo_save
27unlet s:cpo_save