blob: 9b72fb42f914583c0e5cbcbb628b015c0d911bd3 [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>
4" Last Change: Wed Jul 09, 2014 06:23PM
5
6" Only do this when not yet done for this buffer
7if exists("b:did_ftplugin")
8 finish
9endif
10
11" Don't load another plugin for this buffer
12let b:did_ftplugin = 1
13
14let s:cpo_save = &cpo
15set cpo&vim
16
17setlocal iskeyword=@,48-57,_,.
18
19if has("gui_win32") && !exists("b:browsefilter")
20 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
21 \ "All Files (*.*)\t*.*\n"
22endif
23
24let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter"
25
26let &cpo = s:cpo_save
27unlet s:cpo_save
28
29" vim: sw=2