rhelp.vim 738 B

12345678910111213141516171819202122232425262728293031
  1. " Vim filetype plugin file
  2. " Language: R help file
  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. " Don't load another plugin for this buffer
  11. let b:did_ftplugin = 1
  12. let s:cpo_save = &cpo
  13. set cpo&vim
  14. setlocal iskeyword=@,48-57,_,.
  15. if has("gui_win32") && !exists("b:browsefilter")
  16. let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
  17. \ "All Files (*.*)\t*.*\n"
  18. endif
  19. let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter"
  20. let &cpo = s:cpo_save
  21. unlet s:cpo_save
  22. " vim: sw=2