1
0
forked from aniani/vim

Update runtime files

This commit is contained in:
Bram Moolenaar
2023-04-22 22:40:14 +01:00
parent 80406c2618
commit 71badf9547
63 changed files with 3694 additions and 817 deletions

View File

@@ -0,0 +1,9 @@
" Placeholder livebook filetype plugin file.
" This simply uses the markdown filetype plugin.
" Only load this plugin when no other was loaded.
if exists("b:did_ftplugin")
finish
endif
runtime! ftplugin/markdown.vim ftplugin/markdown_*.vim ftplugin/markdown/*.vim

View File

@@ -4,7 +4,8 @@
" Previous Maintainer: Max Ischenko <mfi@ukr.net>
" Contributor: Dorai Sitaram <ds26@gte.com>
" C.D. MacEachern <craig.daniel.maceachern@gmail.com>
" Last Change: 2022 Nov 19
" Tyler Miller <tmillr@proton.me>
" Last Change: 2023 Mar 24
if exists("b:did_ftplugin")
finish
@@ -14,7 +15,7 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
setlocal comments=:--
setlocal comments=:---,:--
setlocal commentstring=--\ %s
setlocal formatoptions-=t formatoptions+=croql

View File

@@ -3,7 +3,7 @@
" Maintainer: Jason Franklin <vim@justemail.net>
" Maintainer: SungHyun Nam <goweol@gmail.com>
" Autoload Split: Bram Moolenaar
" Last Change: 2022 Sep 30
" Last Change: 2023 Mar 21
" To make the ":Man" command available before editing a manual page, source
" this script from your startup vimrc file.
@@ -24,8 +24,8 @@ set cpo-=C
if &filetype == "man"
" Allow hyphen, plus, colon, dot, and commercial at in manual page name.
" Allow parentheses for references.
setlocal iskeyword=48-57,_,a-z,A-Z,-,+,:,.,@-@,(,)
" Parentheses are not here but in dist#man#PreGetPage()
setlocal iskeyword=48-57,_,a-z,A-Z,-,+,:,.,@-@
let b:undo_ftplugin = "setlocal iskeyword<"
" Add mappings, unless the user didn't want this.

View File

@@ -2,6 +2,7 @@
" Language: netrc(5) configuration file
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2008-07-09
" Last Change: 2023 Feb 27 by Keith Smiley
if exists("b:did_ftplugin")
finish
@@ -13,7 +14,7 @@ set cpo&vim
let b:undo_ftplugin = "setl com< cms< fo<"
setlocal comments= commentstring= formatoptions-=tcroq formatoptions+=l
setlocal comments=b:# commentstring=#\ %s formatoptions-=tcroq formatoptions+=l
let &cpo = s:cpo_save
unlet s:cpo_save

View File

@@ -2,7 +2,7 @@
" Language: R Markdown file
" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
" Homepage: https://github.com/jalvesaq/R-Vim-runtime
" Last Change: Sun Apr 24, 2022 09:12AM
" Last Change: Mon Feb 27, 2023 07:15PM
" Original work by Alex Zvoleff (adjusted from R help for rmd by Michel Kuhlmann)
" Only do this when not yet done for this buffer
@@ -23,7 +23,7 @@ setlocal iskeyword=@,48-57,_,.
let s:cpo_save = &cpo
set cpo&vim
function! FormatRmd()
function FormatRmd()
if search("^[ \t]*```[ ]*{r", "bncW") > search("^[ \t]*```$", "bncW")
setlocal comments=:#',:###,:##,:#
else
@@ -32,7 +32,7 @@ function! FormatRmd()
return 1
endfunction
function! SetRmdCommentStr()
function SetRmdCommentStr()
if (search("^[ \t]*```[ ]*{r", "bncW") > search("^[ \t]*```$", "bncW")) || ((search('^---$', 'Wn') || search('^\.\.\.$', 'Wn')) && search('^---$', 'bnW'))
set commentstring=#\ %s
else

View File

@@ -2,7 +2,7 @@
" Language: Rnoweb
" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
" Homepage: https://github.com/jalvesaq/R-Vim-runtime
" Last Change: Sun Apr 24, 2022 09:13AM
" Last Change: Mon Feb 27, 2023 07:16PM
" Only do this when not yet done for this buffer
if exists("b:did_ftplugin")
@@ -29,7 +29,7 @@ if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
\ "All Files (*.*)\t*.*\n"
endif
function! SetRnwCommentStr()
function SetRnwCommentStr()
if (search("^\s*<<.*>>=", "bncW") > search("^@", "bncW"))
set commentstring=#\ %s
else
@@ -47,9 +47,9 @@ if !exists("g:rnw_dynamic_comments") || (exists("g:rnw_dynamic_comments") && g:r
endif
if exists('b:undo_ftplugin')
let b:undo_ftplugin .= " | setl isk< sua< com< | unlet! b:browsefilter"
let b:undo_ftplugin .= " | setl isk< sua< com< cms< | unlet! b:browsefilter"
else
let b:undo_ftplugin = "setl isk< sua< com< | unlet! b:browsefilter"
let b:undo_ftplugin = "setl isk< sua< com< cms< | unlet! b:browsefilter"
endif
let &cpo = s:cpo_save

View File

@@ -2,7 +2,7 @@
" Language: reStructuredText documentation format with R code
" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
" Homepage: https://github.com/jalvesaq/R-Vim-runtime
" Last Change: Sun Apr 24, 2022 09:13AM
" Last Change: Mon Feb 27, 2023 07:16PM
" Original work by Alex Zvoleff
" Only do this when not yet done for this buffer
@@ -22,7 +22,7 @@ setlocal formatoptions+=tcqln
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+
setlocal iskeyword=@,48-57,_,.
function! FormatRrst()
function FormatRrst()
if search('^\.\. {r', "bncW") > search('^\.\. \.\.$', "bncW")
setlocal comments=:#',:###,:##,:#
else