Mercurial > vim
annotate runtime/ftplugin/rhelp.vim @ 35507:1a7250350167 draft default tip
runtime(doc): In builtin overview use {buf} as param for appendbufline/setbufline (#15089)
Commit: https://github.com/vim/vim/commit/f0837ba0b9dba9d30e3dc2626d4f690a2d51103e
Author: errael <errael@raelity.com>
Date: Mon Jun 24 12:27:01 2024 -0700
runtime(doc): In builtin overview use {buf} as param for appendbufline/setbufline (https://github.com/vim/vim/issues/15089)
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 24 Jun 2024 21:30:08 +0200 |
parents | 95da9260ac66 |
children |
rev | line source |
---|---|
6051 | 1 " Vim filetype plugin file |
34467
95da9260ac66
runtime(r,rhelp,rmd,rnoweb,rrst): Update ftplugin, browsefilter labels (#14126)
Christian Brabandt <cb@256bit.org>
parents:
34375
diff
changeset
|
2 " Language: R help file |
95da9260ac66
runtime(r,rhelp,rmd,rnoweb,rrst): Update ftplugin, browsefilter labels (#14126)
Christian Brabandt <cb@256bit.org>
parents:
34375
diff
changeset
|
3 " Maintainer: This runtime file is looking for a new maintainer. |
95da9260ac66
runtime(r,rhelp,rmd,rnoweb,rrst): Update ftplugin, browsefilter labels (#14126)
Christian Brabandt <cb@256bit.org>
parents:
34375
diff
changeset
|
4 " Former Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com> |
95da9260ac66
runtime(r,rhelp,rmd,rnoweb,rrst): Update ftplugin, browsefilter labels (#14126)
Christian Brabandt <cb@256bit.org>
parents:
34375
diff
changeset
|
5 " Former Repository: https://github.com/jalvesaq/R-Vim-runtime |
95da9260ac66
runtime(r,rhelp,rmd,rnoweb,rrst): Update ftplugin, browsefilter labels (#14126)
Christian Brabandt <cb@256bit.org>
parents:
34375
diff
changeset
|
6 " Last Change: 2024 Feb 28 by Vim Project |
6051 | 7 |
8 " Only do this when not yet done for this buffer | |
9 if exists("b:did_ftplugin") | |
10 finish | |
11 endif | |
12 | |
13 " Don't load another plugin for this buffer | |
14 let b:did_ftplugin = 1 | |
15 | |
16 let s:cpo_save = &cpo | |
17 set cpo&vim | |
18 | |
19 setlocal iskeyword=@,48-57,_,. | |
20 | |
24520 | 21 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |
34467
95da9260ac66
runtime(r,rhelp,rmd,rnoweb,rrst): Update ftplugin, browsefilter labels (#14126)
Christian Brabandt <cb@256bit.org>
parents:
34375
diff
changeset
|
22 let b:browsefilter = "R Source Files (*.R, *.Rnw, *.Rd, *.Rmd, *.Rrst, *.qmd)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst;*.qmd\n" |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
23 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
24 let b:browsefilter .= "All Files (*.*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
25 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
26 let b:browsefilter .= "All Files (*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
27 endif |
6051 | 28 endif |
29 | |
30 let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter" | |
31 | |
32 let &cpo = s:cpo_save | |
33 unlet s:cpo_save | |
34 | |
35 " vim: sw=2 |