blob: fdac38f3e9f6f5184321d5f557d41dabc5fcca35 [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
5" Last Change: Tue Apr 07, 2015 04:37PM
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
20if has("gui_win32") && !exists("b:browsefilter")
21 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
22 \ "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