vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

sshconfig.vim (932B)


      1 " Vim filetype plugin file
      2 " 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:	2026 Oct 12
      6 
      7 if exists("b:did_ftplugin")
      8   finish
      9 endif
     10 let b:did_ftplugin = 1
     11 
     12 let s:cpo_save = &cpo
     13 set cpo&vim
     14 
     15 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
     16 let b:undo_ftplugin = 'setlocal com< cms< fo<'
     17 
     18 if has('unix') && executable('less') && has('terminal')
     19   command -buffer -nargs=1 SshconfigKeywordPrg
     20         \ silent exe 'hor term ' . 'env LESS= MANPAGER="less -I --pattern=''' . escape('^\s+' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . 'ssh_config'
     21   setlocal iskeyword+=-
     22   setlocal keywordprg=:SshconfigKeywordPrg
     23   let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer SshconfigKeywordPrg'
     24 endif
     25 
     26 let &cpo = s:cpo_save
     27 unlet s:cpo_save