blob: 2fde4875c6805bb1be6c5c9aa269fe59f57c7cd2 [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
Bram Moolenaardd60c362023-02-27 15:49:53 +00005" Last Change: Sun Apr 24, 2022 09:12AM
Bram Moolenaardb6ea062014-07-10 22:01:47 +02006
7" Only do this when not yet done for this buffer
8if exists("b:did_ftplugin")
9 finish
10endif
11
12" Don't load another plugin for this buffer
13let b:did_ftplugin = 1
14
15let s:cpo_save = &cpo
16set cpo&vim
17
18setlocal iskeyword=@,48-57,_,.
19
Bram Moolenaar11e3c5b2021-04-21 18:09:37 +020020if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
Bram Moolenaardd60c362023-02-27 15:49:53 +000021 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst *.qmd)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst;*.qmd\n" .
Bram Moolenaardb6ea062014-07-10 22:01:47 +020022 \ "All Files (*.*)\t*.*\n"
23endif
24
25let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter"
26
27let &cpo = s:cpo_save
28unlet s:cpo_save
29
30" vim: sw=2