rnoweb.vim 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. " Vim filetype plugin file
  2. " Language: Rnoweb
  3. " Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
  4. " Homepage: https://github.com/jalvesaq/R-Vim-runtime
  5. " Last Change: Tue Apr 07, 2015 04:37PM
  6. " Only do this when not yet done for this buffer
  7. if exists("b:did_ftplugin")
  8. finish
  9. endif
  10. let s:cpo_save = &cpo
  11. set cpo&vim
  12. runtime! ftplugin/tex.vim
  13. " Don't load another plugin for this buffer
  14. let b:did_ftplugin = 1
  15. " Enables Vim-Latex-Suite, LaTeX-Box if installed
  16. runtime ftplugin/tex_*.vim
  17. setlocal iskeyword=@,48-57,_,.
  18. setlocal suffixesadd=.bib,.tex
  19. setlocal comments=b:%,b:#,b:##,b:###,b:#'
  20. if 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"
  23. endif
  24. if exists('b:undo_ftplugin')
  25. let b:undo_ftplugin .= " | setl isk< sua< com< | unlet! b:browsefilter"
  26. else
  27. let b:undo_ftplugin = "setl isk< sua< com< | unlet! b:browsefilter"
  28. endif
  29. let &cpo = s:cpo_save
  30. unlet s:cpo_save
  31. " vim: sw=2