robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:714671d: runtime(misc): use :hor :term to ensure new term window is split horizontally (#35064)1f7432a272

master
1019 B29 linesraw
1" Vim filetype plugin file
2" Language:             modules.conf(5) configuration 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
7if exists("b:did_ftplugin")
8  finish
9endif
10let b:did_ftplugin = 1
11
12let s:cpo_save = &cpo
13set cpo&vim
14
15let b:undo_ftplugin = "setl com< cms< inc< fo<"
16
17setlocal comments=:# commentstring=#\ %s include=^\\s*include
18setlocal formatoptions-=t formatoptions+=croql
19
20if has('unix') && executable('less') && exists(':terminal') == 2
21  command -buffer -nargs=1 ModconfKeywordPrg
22        \ silent exe ':hor 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
27
28let &cpo = s:cpo_save
29unlet s:cpo_save