blob: dc5f1b5e06863a75be82ba4008a9f5a0fe49c8f2 [file] [log] [blame]
Bram Moolenaardb6ea062014-07-10 22:01:47 +02001" Vim filetype plugin file
2" Language: Rnoweb
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 Moolenaar11e3c5b2021-04-21 18:09:37 +02005" Last Change: Sat Aug 15, 2020 12:02PM
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
12let s:cpo_save = &cpo
13set cpo&vim
14
15runtime! ftplugin/tex.vim
16
17" Don't load another plugin for this buffer
18let b:did_ftplugin = 1
19
20" Enables Vim-Latex-Suite, LaTeX-Box if installed
21runtime ftplugin/tex_*.vim
22
23setlocal iskeyword=@,48-57,_,.
24setlocal suffixesadd=.bib,.tex
25setlocal comments=b:%,b:#,b:##,b:###,b:#'
26
Bram Moolenaar11e3c5b2021-04-21 18:09:37 +020027if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
Bram Moolenaardb6ea062014-07-10 22:01:47 +020028 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
29 \ "All Files (*.*)\t*.*\n"
30endif
31
32if exists('b:undo_ftplugin')
33 let b:undo_ftplugin .= " | setl isk< sua< com< | unlet! b:browsefilter"
34else
35 let b:undo_ftplugin = "setl isk< sua< com< | unlet! b:browsefilter"
36endif
37
38let &cpo = s:cpo_save
39unlet s:cpo_save
40
41" vim: sw=2