rhelp.vim 952 B

123456789101112131415161718192021222324252627282930313233343536
  1. " Vim filetype plugin file
  2. " Language: R help file
  3. " Maintainer: This runtime file is looking for a new maintainer.
  4. " Former Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
  5. " Former Repository: https://github.com/jalvesaq/R-Vim-runtime
  6. " Last Change: 2024 Feb 28 by Vim Project
  7. " Only do this when not yet done for this buffer
  8. if exists("b:did_ftplugin")
  9. finish
  10. endif
  11. " Don't load another plugin for this buffer
  12. let b:did_ftplugin = 1
  13. let s:cpo_save = &cpo
  14. set cpo&vim
  15. setlocal iskeyword=@,48-57,_,.
  16. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  17. let b:browsefilter = "R Source Files (*.R, *.Rnw, *.Rd, *.Rmd, *.Rrst, *.qmd)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst;*.qmd\n"
  18. if has("win32")
  19. let b:browsefilter .= "All Files (*.*)\t*\n"
  20. else
  21. let b:browsefilter .= "All Files (*)\t*\n"
  22. endif
  23. endif
  24. let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter"
  25. let &cpo = s:cpo_save
  26. unlet s:cpo_save
  27. " vim: sw=2