Mercurial > vim
comparison runtime/ftplugin/rmd.vim @ 6051:0efec12f52ac
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 10 Jul 2014 22:01:47 +0200 |
parents | |
children | da01d5da2cfa |
comparison
equal
deleted
inserted
replaced
6050:f5c7483cbbb4 | 6051:0efec12f52ac |
---|---|
1 " Vim filetype plugin file | |
2 " Language: R help file | |
3 " Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com> | |
4 " Last Change: Wed Jul 09, 2014 06:23PM | |
5 " Original work by Alex Zvoleff (adjusted for rmd by Michel Kuhlmann) | |
6 | |
7 " Only do this when not yet done for this buffer | |
8 if exists("b:did_ftplugin") | |
9 finish | |
10 endif | |
11 | |
12 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim | |
13 | |
14 setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s | |
15 setlocal formatoptions+=tcqln | |
16 setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+ | |
17 setlocal iskeyword=@,48-57,_,. | |
18 | |
19 let s:cpo_save = &cpo | |
20 set cpo&vim | |
21 | |
22 " Enables pandoc if it is installed | |
23 unlet! b:did_ftplugin | |
24 runtime ftplugin/pandoc.vim | |
25 | |
26 " Don't load another plugin for this buffer | |
27 let b:did_ftplugin = 1 | |
28 | |
29 if has("gui_win32") && !exists("b:browsefilter") | |
30 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | |
31 \ "All Files (*.*)\t*.*\n" | |
32 endif | |
33 | |
34 if exists('b:undo_ftplugin') | |
35 let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | |
36 else | |
37 let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | |
38 endif | |
39 | |
40 let &cpo = s:cpo_save | |
41 unlet s:cpo_save | |
42 | |
43 " vim: sw=2 |