xref: /vim-8.2.3635/runtime/ftplugin/rnoweb.vim (revision 11e3c5ba)
1" Vim filetype plugin file
2" Language: Rnoweb
3" Maintainer: Jakson Alves de Aquino <[email protected]>
4" Homepage: https://github.com/jalvesaq/R-Vim-runtime
5" Last Change:	Sat Aug 15, 2020  12:02PM
6
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
27if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
28  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
42