Mercurial > vim
annotate runtime/ftplugin/rrst.vim @ 13076:7c071a3f7f8e v8.0.1413
patch 8.0.1413: accessing freed memory in :cbuffer
commit https://github.com/vim/vim/commit/aaf6e43b7a99cedb89d73ba749a46f7a0f16bbb6
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 19 16:41:14 2017 +0100
patch 8.0.1413: accessing freed memory in :cbuffer
Problem: Accessing freed memory in :cbuffer.
Solution: Get quickfix list after executing autocmds. (closes https://github.com/vim/vim/issues/2470)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Dec 2017 16:45:06 +0100 |
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 |