annotate runtime/ftplugin/readline.vim @ 32984:75c283beb74f

re-sync with git
author Christian Brabandt <cb@256bit.org>
date Thu, 24 Aug 2023 07:58:05 +0200
parents e5e95e8c78a7
children 5510af40c77b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
31430
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
2 " Language: readline(3) configuration file
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
5 " Last Change: 2022 Dec 09
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
6
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
8 finish
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
9 endif
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
10 let b:did_ftplugin = 1
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
11
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
12 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
13 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
14
31430
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
15 setlocal comments=:#
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
16 setlocal commentstring=#\ %s
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
17 setlocal formatoptions-=t formatoptions+=croql
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
18
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
19 let b:undo_ftplugin = "setl com< cms< fo<"
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
20
31430
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
21 if exists("loaded_matchit") && !exists("b:match_words")
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
22 let b:match_ignorecase = 0
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
23 let b:match_words = '$if:$else:$endif'
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
24 let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
25 endif
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
26
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
27 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
32984
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
28 let b:browsefilter = "Readline Initialization Files (inputrc .inputrc)\tinputrc;*.inputrc\n" ..
31430
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
29 \ "All Files (*.*)\t*.*\n"
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
30 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
31 endif
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
32
32984
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
33 if has('unix') && executable('less')
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
34 if !has('gui_running')
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
35 command -buffer -nargs=1 Sman
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
36 \ silent exe '!' . 'LESS= MANPAGER="less --pattern=''^\s+' . <q-args> . '\b'' --hilite-search" man ' . '3 readline' |
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
37 \ redraw!
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
38 elseif has('terminal')
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
39 command -buffer -nargs=1 Sman
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
40 \ silent exe 'term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . '3 readline'
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
41 endif
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
42 if exists(':Sman') == 2
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
43 setlocal iskeyword+=-
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
44 setlocal keywordprg=:Sman
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
45 let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword<'
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
46 endif
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
47 endif
75c283beb74f re-sync with git
Christian Brabandt <cb@256bit.org>
parents: 31430
diff changeset
48
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
49 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
50 unlet s:cpo_save
31430
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
51
e5e95e8c78a7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
52 " vim: nowrap sw=2 sts=2 ts=8 noet: