blob: 68ce69a446ff8c5eabff40cae6714dff36b121ef [file] [log] [blame]
Bram Moolenaar42eeac32005-06-29 22:40:58 +00001" Vim filetype plugin file
Bram Moolenaar214641f2017-03-05 17:04:09 +01002" Language: modules.conf(5) configuration file
zeertzjq87b65652024-09-20 21:47:19 +02003" Maintainer: This runtime file is looking for a new maintainer.
Bram Moolenaar214641f2017-03-05 17:04:09 +01004" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
zeertzjq87b65652024-09-20 21:47:19 +02005" Latest Revision: 2024-09-20 (remove erroneous endif)
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 +000015let b:undo_ftplugin = "setl com< cms< inc< fo<"
Bram Moolenaar42eeac32005-06-29 22:40:58 +000016
17setlocal comments=:# commentstring=#\ %s include=^\\s*include
Bram Moolenaar0dc065e2005-07-04 22:49:24 +000018setlocal formatoptions-=t formatoptions+=croql
Bram Moolenaare37d50a2008-08-06 17:06:04 +000019
Konfektf86568f2024-09-19 19:34:40 +020020if has('unix') && executable('less') && exists(':terminal') == 2
21 command -buffer -nargs=1 ModconfKeywordPrg
22 \ silent exe ':term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s{,8}' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . 'modprobe.d'
23 setlocal iskeyword+=-
24 setlocal keywordprg=:ModconfKeywordPrg
25 let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer ModconfKeywordPrg'
26endif
Enno2f25e402023-08-23 21:27:50 +020027
Bram Moolenaare37d50a2008-08-06 17:06:04 +000028let &cpo = s:cpo_save
29unlet s:cpo_save