Mercurial > vim
annotate runtime/ftplugin/rmd.vim @ 9452:6d5c24b8dc0e v7.4.2007
commit https://github.com/vim/vim/commit/fc4ad616073a169badfb2b9906fee2844f76f730
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 9 15:38:32 2016 +0200
patch 7.4.2007
Problem: Running the tests leaves a viminfo file behind.
Solution: Make the viminfo option empty.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 09 Jul 2016 15:45:07 +0200 |
parents | da01d5da2cfa |
children | 03fa8a51e9dc |
rev | line source |
---|---|
6051 | 1 " Vim filetype plugin file |
2 " Language: R help file | |
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:37PM |
6051 | 6 " Original work by Alex Zvoleff (adjusted for rmd by Michel Kuhlmann) |
7 | |
8 " Only do this when not yet done for this buffer | |
9 if exists("b:did_ftplugin") | |
10 finish | |
11 endif | |
12 | |
13 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim | |
14 | |
15 setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s | |
16 setlocal formatoptions+=tcqln | |
17 setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+ | |
18 setlocal iskeyword=@,48-57,_,. | |
19 | |
20 let s:cpo_save = &cpo | |
21 set cpo&vim | |
22 | |
23 " Enables pandoc if it is installed | |
24 unlet! b:did_ftplugin | |
25 runtime ftplugin/pandoc.vim | |
26 | |
27 " Don't load another plugin for this buffer | |
28 let b:did_ftplugin = 1 | |
29 | |
30 if has("gui_win32") && !exists("b:browsefilter") | |
31 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | |
32 \ "All Files (*.*)\t*.*\n" | |
33 endif | |
34 | |
35 if exists('b:undo_ftplugin') | |
36 let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | |
37 else | |
38 let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | |
39 endif | |
40 | |
41 let &cpo = s:cpo_save | |
42 unlet s:cpo_save | |
43 | |
44 " vim: sw=2 |