robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
37596fcd29
master
1" Vim filetype plugin file 2" Language: readline(3) configuration file 3" Maintainer: Doug Kearns <dougkearns@gmail.com> 4" Previous Maintainer: Nikolai Weibull <now@bitwi.se> 5" Last Change: 2024 Sep 19 (simplify keywordprg #15696) 6" 2024 Jul 22 by Vim project (use :hor term #17822) 7" 2026 May 04 by Vim Project: fix typo 8 9if exists ( "b:did_ftplugin" ) 10finish 11endif 12let b: did_ftplugin = 1 13 14let s: cpo_save = & cpo 15set cpo & vim 16 17setlocal comments = :# 18setlocal commentstring = #\ %s 19setlocal formatoptions -= tformatoptions += croql 20 21let b: undo_ftplugin = "setl com< cms< fo<" 22 23if exists ( "loaded_matchit" ) && ! exists ( "b:match_words" ) 24let b: match_ignorecase = 0 25let b: match_words = '$if:$else:$endif' 26let b: undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words" 27endif 28 29if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 30let b: browsefilter = "Readline Initialization Files (inputrc, .inputrc)\tinputrc;*.inputrc\n" 31if has ( "win32" ) 32let b: browsefilter ..= "All Files (*.*)\t*\n" 33else 34let b: browsefilter ..= "All Files (*)\t*\n" 35endif 36let b: undo_ftplugin ..= " | unlet! b:browsefilter" 37endif 38 39if has ( 'unix' ) && executable ( 'less' ) && exists ( ':terminal' ) == 2 40command -buffer -nargs = 1 ReadlineKeywordPrg 41 \silent exe 'hor term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . '3 readline' 42setlocal iskeyword += - 43setlocal keywordprg = :ReadlineKeywordPrg 44let b: undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer ReadlineKeywordPrg' 45endif 46 47let & cpo = s: cpo_save 48unlet s: cpo_save 49 50" vim: nowrap sw=2 sts=2 ts=8 noet: