robin/laufey

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

zeertzjqvim-patch:cb0b4cf: Fix a few more typos (#39596)37596fcd29

master
1.6 KiB50 linesraw
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")
10  finish
11endif
12let b:did_ftplugin = 1
13
14let s:cpo_save = &cpo
15set cpo&vim
16
17setlocal comments=:#
18setlocal commentstring=#\ %s
19setlocal formatoptions-=t formatoptions+=croql
20
21let b:undo_ftplugin = "setl com< cms< fo<"
22
23if exists("loaded_matchit") && !exists("b:match_words")
24  let b:match_ignorecase = 0
25  let b:match_words = '$if:$else:$endif'
26  let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
27endif
28
29if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
30  let b:browsefilter = "Readline Initialization Files (inputrc, .inputrc)\tinputrc;*.inputrc\n"
31  if has("win32")
32    let b:browsefilter ..= "All Files (*.*)\t*\n"
33  else
34    let b:browsefilter ..= "All Files (*)\t*\n"
35  endif
36  let b:undo_ftplugin ..= " | unlet! b:browsefilter"
37endif
38
39if has('unix') && executable('less') && exists(':terminal') == 2
40  command -buffer -nargs=1 ReadlineKeywordPrg
41        \ silent exe 'hor term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . '3 readline'
42  setlocal iskeyword+=-
43  setlocal keywordprg=:ReadlineKeywordPrg
44  let 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: