blob: 6086b440f0ab35e7c463b0365132453576a6d3c2 [file] [log] [blame]
Bram Moolenaardb6ea062014-07-10 22:01:47 +02001" Vim filetype plugin file
2" Language: R help file
3" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
Bram Moolenaar77cdfd12016-03-12 12:57:59 +01004" Homepage: https://github.com/jalvesaq/R-Vim-runtime
Christian Brabandtf9ca1392024-02-19 20:37:11 +01005" Last Change: 2022 Apr 24 09:12AM
Doug Kearns93197fd2024-01-14 20:59:02 +01006" 2024 Jan 14 by Vim Project (browsefilter)
Bram Moolenaardb6ea062014-07-10 22:01:47 +02007
8" Only do this when not yet done for this buffer
9if exists("b:did_ftplugin")
10 finish
11endif
12
13" Don't load another plugin for this buffer
14let b:did_ftplugin = 1
15
16let s:cpo_save = &cpo
17set cpo&vim
18
19setlocal iskeyword=@,48-57,_,.
20
Bram Moolenaar11e3c5b2021-04-21 18:09:37 +020021if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
Doug Kearns93197fd2024-01-14 20:59:02 +010022 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst *.qmd)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst;*.qmd\n"
23 if has("win32")
24 let b:browsefilter .= "All Files (*.*)\t*\n"
25 else
26 let b:browsefilter .= "All Files (*)\t*\n"
27 endif
Bram Moolenaardb6ea062014-07-10 22:01:47 +020028endif
29
30let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter"
31
32let &cpo = s:cpo_save
33unlet s:cpo_save
34
35" vim: sw=2