diff options
| author | Bram Moolenaar <Bram@vim.org> | 2023-04-22 22:40:14 +0100 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2023-04-22 22:40:14 +0100 |
| commit | 71badf9547e8f89571b9a095183671cbb333d528 (patch) | |
| tree | 60d0393cb0236345eb4b5d26f98c8c9d030ce8b0 /runtime/ftplugin | |
| parent | 80406c26188219f3773b2e9c49160caeeb386ee2 (diff) | |
| download | vim-git-71badf9547e8f89571b9a095183671cbb333d528.tar.gz | |
Update runtime files
Diffstat (limited to 'runtime/ftplugin')
| -rw-r--r-- | runtime/ftplugin/livebook.vim | 9 | ||||
| -rw-r--r-- | runtime/ftplugin/lua.vim | 5 | ||||
| -rw-r--r-- | runtime/ftplugin/man.vim | 6 | ||||
| -rw-r--r-- | runtime/ftplugin/netrc.vim | 3 | ||||
| -rw-r--r-- | runtime/ftplugin/rmd.vim | 6 | ||||
| -rw-r--r-- | runtime/ftplugin/rnoweb.vim | 8 | ||||
| -rw-r--r-- | runtime/ftplugin/rrst.vim | 4 |
7 files changed, 26 insertions, 15 deletions
diff --git a/runtime/ftplugin/livebook.vim b/runtime/ftplugin/livebook.vim new file mode 100644 index 000000000..c97d21041 --- /dev/null +++ b/runtime/ftplugin/livebook.vim @@ -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 diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim index 88b1fc9d4..3529e1e3f 100644 --- a/runtime/ftplugin/lua.vim +++ b/runtime/ftplugin/lua.vim @@ -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 diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 7d59eab4c..a2c33bc36 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -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. diff --git a/runtime/ftplugin/netrc.vim b/runtime/ftplugin/netrc.vim index 02ee32729..5f40bec96 100644 --- a/runtime/ftplugin/netrc.vim +++ b/runtime/ftplugin/netrc.vim @@ -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 diff --git a/runtime/ftplugin/rmd.vim b/runtime/ftplugin/rmd.vim index 355b88f04..be6ab7335 100644 --- a/runtime/ftplugin/rmd.vim +++ b/runtime/ftplugin/rmd.vim @@ -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 diff --git a/runtime/ftplugin/rnoweb.vim b/runtime/ftplugin/rnoweb.vim index cf1c0922c..26c1ab4e3 100644 --- a/runtime/ftplugin/rnoweb.vim +++ b/runtime/ftplugin/rnoweb.vim @@ -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 diff --git a/runtime/ftplugin/rrst.vim b/runtime/ftplugin/rrst.vim index 19c67c4cc..d9df5e587 100644 --- a/runtime/ftplugin/rrst.vim +++ b/runtime/ftplugin/rrst.vim @@ -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 |
