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