muttrc.vim (998B)
1 " Vim filetype plugin file 2 " Language: mutt RC File 3 " Maintainer: This runtime file is looking for a new maintainer. 4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> 5 " Latest Revision: 2025-07-22 (use :hor term #17822) 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< inc< fo<" 16 17 setlocal comments=:# commentstring=#\ %s 18 setlocal formatoptions-=t formatoptions+=croql 19 20 let &l:include = '^\s*source\>' 21 22 if has('unix') && executable('less') && exists(':terminal') == 2 23 command -buffer -nargs=1 MuttrcKeywordPrg 24 \ silent exe 'hor term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . 'muttrc' 25 setlocal iskeyword+=- 26 setlocal keywordprg=:MuttrcKeywordPrg 27 let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer MuttrcKeywordPrg' 28 endif 29 30 let &cpo = s:cpo_save 31 unlet s:cpo_save