Mercurial > vim
annotate runtime/ftplugin/rrst.vim @ 10140:b11ceef7116e
commit https://github.com/vim/vim/commit/64d8e25bf6efe5f18b032563521c3ce278c316ab
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 6 22:12:34 2016 +0200
Updated runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 06 Sep 2016 22:15:08 +0200 |
parents | da01d5da2cfa |
children | 0ecb909e3249 |
rev | line source |
---|---|
6051 | 1 " Vim filetype plugin file |
2 " Language: reStructuredText documentation format with R code | |
3 " Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com> | |
8497
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
6051
diff
changeset
|
4 " Homepage: https://github.com/jalvesaq/R-Vim-runtime |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
6051
diff
changeset
|
5 " Last Change: Tue Apr 07, 2015 04:38PM |
6051 | 6 " Original work by Alex Zvoleff |
7 | |
8 " Only do this when not yet done for this buffer | |
9 if exists("b:did_ftplugin") | |
10 finish | |
11 endif | |
12 | |
13 " Don't load another plugin for this buffer | |
14 let b:did_ftplugin = 1 | |
15 | |
16 let s:cpo_save = &cpo | |
17 set cpo&vim | |
18 | |
19 setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s | |
20 setlocal formatoptions+=tcqln | |
21 setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+ | |
22 setlocal iskeyword=@,48-57,_,. | |
23 | |
24 if has("gui_win32") && !exists("b:browsefilter") | |
25 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | |
26 \ "All Files (*.*)\t*.*\n" | |
27 endif | |
28 | |
29 if exists('b:undo_ftplugin') | |
30 let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | |
31 else | |
32 let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | |
33 endif | |
34 | |
35 let &cpo = s:cpo_save | |
36 unlet s:cpo_save | |
37 | |
38 " vim: sw=2 |