1" Vim filetype plugin file 2" Language: R help file 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:01PM 6 7" Only do this when not yet done for this buffer 8if exists("b:did_ftplugin") 9 finish 10endif 11 12" Don't load another plugin for this buffer 13let b:did_ftplugin = 1 14 15let s:cpo_save = &cpo 16set cpo&vim 17 18setlocal iskeyword=@,48-57,_,. 19 20if (has("gui_win32") || has("gui_gtk")) && !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" 23endif 24 25let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter" 26 27let &cpo = s:cpo_save 28unlet s:cpo_save 29 30" vim: sw=2 31