Mercurial > vim
comparison runtime/ftplugin/rrst.vim @ 24520:5bda4653aced
Update runtime files
Commit: https://github.com/vim/vim/commit/11e3c5ba820325b69cb56f70e13c21d7b8808d33
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 21 18:09:37 2021 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Apr 2021 18:15:04 +0200 |
parents | 0ecb909e3249 |
children | b2412874362f |
comparison
equal
deleted
inserted
replaced
24519:da748a66a65a | 24520:5bda4653aced |
---|---|
1 " Vim filetype plugin file | 1 " Vim filetype plugin file |
2 " Language: reStructuredText documentation format with R code | 2 " Language: reStructuredText documentation format with R code |
3 " Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com> | 3 " Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com> |
4 " Homepage: https://github.com/jalvesaq/R-Vim-runtime | 4 " Homepage: https://github.com/jalvesaq/R-Vim-runtime |
5 " Last Change: Wed Nov 01, 2017 10:47PM | 5 " Last Change: Sat Aug 15, 2020 12:02PM |
6 " Original work by Alex Zvoleff | 6 " Original work by Alex Zvoleff |
7 | 7 |
8 " Only do this when not yet done for this buffer | 8 " Only do this when not yet done for this buffer |
9 if exists("b:did_ftplugin") | 9 if exists("b:did_ftplugin") |
10 finish | 10 finish |
35 " let g:rrst_dynamic_comments = 0 | 35 " let g:rrst_dynamic_comments = 0 |
36 if !exists("g:rrst_dynamic_comments") || (exists("g:rrst_dynamic_comments") && g:rrst_dynamic_comments == 1) | 36 if !exists("g:rrst_dynamic_comments") || (exists("g:rrst_dynamic_comments") && g:rrst_dynamic_comments == 1) |
37 setlocal formatexpr=FormatRrst() | 37 setlocal formatexpr=FormatRrst() |
38 endif | 38 endif |
39 | 39 |
40 if has("gui_win32") && !exists("b:browsefilter") | 40 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |
41 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | 41 let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . |
42 \ "All Files (*.*)\t*.*\n" | 42 \ "All Files (*.*)\t*.*\n" |
43 endif | 43 endif |
44 | 44 |
45 if exists('b:undo_ftplugin') | 45 if exists('b:undo_ftplugin') |