Mercurial > vim
annotate runtime/ftplugin/r.vim @ 34330:518e6f36a844
Added tag v9.1.0098 for changeset a059fc613d55d18a5f6b57feb9c503dff63a3c11
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 11 Feb 2024 18:00:04 +0100 |
parents | 8ae680be2a51 |
children | 02bd0fe77c68 |
rev | line source |
---|---|
6051 | 1 " Vim filetype plugin file |
2 " Language: R | |
3 " Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com> | |
8497
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
6051
diff
changeset
|
4 " Homepage: https://github.com/jalvesaq/R-Vim-runtime |
32061 | 5 " Last Change: Sun Apr 24, 2022 09:14AM |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
6 " 2024 Jan 14 by Vim Project (browsefilter) |
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 setlocal formatoptions-=t | |
21 setlocal commentstring=#\ %s | |
22 setlocal comments=:#',:###,:##,:# | |
23 | |
24520 | 24 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |
6051 | 25 let b:browsefilter = "R Source Files (*.R)\t*.R\n" . |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
26 \ "Files that include R (*.Rnw *.Rd *.Rmd *.Rrst *.qmd)\t*.Rnw;*.Rd;*.Rmd;*.Rrst;*.qmd\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
27 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
28 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
|
29 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32061
diff
changeset
|
30 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
|
31 endif |
6051 | 32 endif |
33 | |
34 let b:undo_ftplugin = "setl cms< com< fo< isk< | unlet! b:browsefilter" | |
35 | |
36 let &cpo = s:cpo_save | |
37 unlet s:cpo_save |