vim

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

gpg.vim (925B)


      1 " Vim filetype plugin file
      2 " Language:             gpg(1) 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 Sep 01
      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 let b:undo_ftplugin = "setl com< cms< fo<"
     16 
     17 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
     18 
     19 if has('unix') && executable('less') && has('terminal')
     20   command -buffer -nargs=1 GpgKeywordPrg
     21         \ silent exe ':hor term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+--' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . 'gpg'
     22   setlocal iskeyword+=-
     23   setlocal keywordprg=:GpgKeywordPrg
     24   let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer GpgKeywordPrg'
     25 endif
     26 
     27 let &cpo = s:cpo_save
     28 unlet s:cpo_save
     29