mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.1.0464: no whitespace padding in commentstring option in ftplugins
Problem: no whitespace padding in commentstring option in ftplugins Solution: Change default to include whitespace padding, update existing filetype plugins with the new default value (Riley Bruins) closes: #14843 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
a218cc6cda
commit
0a0830624a
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -179,6 +179,7 @@ runtime/ftplugin/kotlin.vim @udalov
|
|||||||
runtime/ftplugin/less.vim @genoma
|
runtime/ftplugin/less.vim @genoma
|
||||||
runtime/ftplugin/liquid.vim @tpope
|
runtime/ftplugin/liquid.vim @tpope
|
||||||
runtime/ftplugin/lua.vim @dkearns
|
runtime/ftplugin/lua.vim @dkearns
|
||||||
|
runtime/ftplugin/lc.vim @ribru17
|
||||||
runtime/ftplugin/lynx.vim @dkearns
|
runtime/ftplugin/lynx.vim @dkearns
|
||||||
runtime/ftplugin/m3build.vim @dkearns
|
runtime/ftplugin/m3build.vim @dkearns
|
||||||
runtime/ftplugin/m3quake.vim @dkearns
|
runtime/ftplugin/m3quake.vim @dkearns
|
||||||
|
@ -1909,13 +1909,14 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
insert a space.
|
insert a space.
|
||||||
|
|
||||||
*'commentstring'* *'cms'* *E537*
|
*'commentstring'* *'cms'* *E537*
|
||||||
'commentstring' 'cms' string (default "/*%s*/")
|
'commentstring' 'cms' string (default "/* %s */")
|
||||||
local to buffer
|
local to buffer
|
||||||
{not available when compiled without the |+folding|
|
{not available when compiled without the |+folding|
|
||||||
feature}
|
feature}
|
||||||
A template for a comment. The "%s" in the value is replaced with the
|
A template for a comment. The "%s" in the value is replaced with the
|
||||||
comment text. Currently only used to add markers for folding, see
|
comment text, and should be padded with a space when possible.
|
||||||
|fold-marker|. Also used by comment plugins |comment-install|.
|
Currently used to add markers for folding, see |fold-marker| also
|
||||||
|
commonly used by commenting plugins (e.g. |comment-install|).
|
||||||
|
|
||||||
*'compatible'* *'cp'* *'nocompatible'* *'nocp'*
|
*'compatible'* *'cp'* *'nocompatible'* *'nocp'*
|
||||||
'compatible' 'cp' boolean (default on, off when a |vimrc| or |gvimrc|
|
'compatible' 'cp' boolean (default on, off when a |vimrc| or |gvimrc|
|
||||||
|
@ -41565,6 +41565,8 @@ Changed~
|
|||||||
-------
|
-------
|
||||||
- use 'smoothscroll' logic for CTRL-F and CTRL-B for pagewise scrolling
|
- use 'smoothscroll' logic for CTRL-F and CTRL-B for pagewise scrolling
|
||||||
- use 'smoothscroll' logic for CTRL-D and CTRL-U for half-pagewise scrolling
|
- use 'smoothscroll' logic for CTRL-D and CTRL-U for half-pagewise scrolling
|
||||||
|
- the default for 'commentstring' contains whitespace padding to have
|
||||||
|
automatic comments look nicer |comment-install|
|
||||||
|
|
||||||
*added-9.2*
|
*added-9.2*
|
||||||
Added ~
|
Added ~
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Carl Osterwisch <costerwi@gmail.com>
|
" Maintainer: Carl Osterwisch <costerwi@gmail.com>
|
||||||
" Last Change: 2022 Oct 08
|
" Last Change: 2022 Oct 08
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
@ -27,7 +28,7 @@ setlocal isfname-=,
|
|||||||
|
|
||||||
" Define format of comment lines (see 'formatoptions' for uses)
|
" Define format of comment lines (see 'formatoptions' for uses)
|
||||||
setlocal comments=:**
|
setlocal comments=:**
|
||||||
setlocal commentstring=**%s
|
setlocal commentstring=**\ %s
|
||||||
|
|
||||||
" Definitions start with a * and assign a NAME, NSET, or ELSET
|
" Definitions start with a * and assign a NAME, NSET, or ELSET
|
||||||
" Used in [d ^wd and other commands
|
" Used in [d ^wd and other commands
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Ken Takata <https://github.com/k-takata>
|
" Ken Takata <https://github.com/k-takata>
|
||||||
" Last Change: 2024 Apr 12
|
" Last Change: 2024 Apr 12
|
||||||
|
" 2024 Jun 02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
"
|
"
|
||||||
" Most of the part was copied from c.vim.
|
" Most of the part was copied from c.vim.
|
||||||
|
|
||||||
@ -32,7 +33,7 @@ setlocal fo-=t fo+=croql
|
|||||||
|
|
||||||
" These options have the right value as default, but the user may have
|
" These options have the right value as default, but the user may have
|
||||||
" overruled that.
|
" overruled that.
|
||||||
setlocal commentstring& define& include&
|
setlocal commentstring=/*\ %s\ */ define& include&
|
||||||
|
|
||||||
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
||||||
if exists('&ofu')
|
if exists('&ofu')
|
||||||
|
@ -4,13 +4,14 @@
|
|||||||
" Last Change: 2020 May 23
|
" Last Change: 2020 May 23
|
||||||
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||||
" 2024 Apr 09 by Vim Project (add Matchit support)
|
" 2024 Apr 09 by Vim Project (add Matchit support)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setl include=^\\s*%\\s*include
|
setl include=^\\s*%\\s*include
|
||||||
setl comments=:;,s1:/*,mb:*,ex:*/,://
|
setl comments=:;,s1:/*,mb:*,ex:*/,://
|
||||||
setl commentstring=;%s
|
setl commentstring=;\ %s
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl commentstring< comments< include<"
|
let b:undo_ftplugin = "setl commentstring< comments< include<"
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Astro
|
" Language: Astro
|
||||||
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
" Last Change: 2024 Apr 21
|
" Last Change: 2024 Apr 21
|
||||||
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -25,17 +26,17 @@ function! s:AstroComments() abort
|
|||||||
\ || s:IdentifyScope('^\s*<script', '^\s*<\/script>')
|
\ || s:IdentifyScope('^\s*<script', '^\s*<\/script>')
|
||||||
" ECMAScript comments
|
" ECMAScript comments
|
||||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||||
setlocal commentstring=//%s
|
setlocal commentstring=//\ %s
|
||||||
|
|
||||||
elseif s:IdentifyScope('^\s*<style', '^\s*<\/style>')
|
elseif s:IdentifyScope('^\s*<style', '^\s*<\/style>')
|
||||||
" CSS comments
|
" CSS comments
|
||||||
setlocal comments=s1:/*,mb:*,ex:*/
|
setlocal comments=s1:/*,mb:*,ex:*/
|
||||||
setlocal commentstring=/*%s*/
|
setlocal commentstring=/*\ %s\ */
|
||||||
|
|
||||||
else
|
else
|
||||||
" HTML comments
|
" HTML comments
|
||||||
setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
|
setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
|
||||||
setlocal commentstring=<!--%s-->
|
setlocal commentstring=<!--\ %s\ -->
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -3,13 +3,14 @@
|
|||||||
" Maintainer: Gregory Anders <greg@gpanders.com>
|
" Maintainer: Gregory Anders <greg@gpanders.com>
|
||||||
" Repository: https://github.com/openembedded/bitbake
|
" Repository: https://github.com/openembedded/bitbake
|
||||||
" Latest Revision: 2022-07-23
|
" Latest Revision: 2022-07-23
|
||||||
|
" 2024-05-23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
setlocal comments=:#
|
setlocal comments=:#
|
||||||
setlocal suffixesadd=.bb,.bbclass
|
setlocal suffixesadd=.bb,.bbclass
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: C
|
" Language: C
|
||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2023 Aug 22
|
" Last Change: 2023 Aug 22
|
||||||
|
" 2024 Jun 02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
@ -24,7 +25,7 @@ setlocal fo-=t fo+=croql
|
|||||||
|
|
||||||
" These options have the right value as default, but the user may have
|
" These options have the right value as default, but the user may have
|
||||||
" overruled that.
|
" overruled that.
|
||||||
setlocal commentstring& define& include&
|
setlocal commentstring=/*\ %s\ */ define& include&
|
||||||
|
|
||||||
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
||||||
if exists('&ofu')
|
if exists('&ofu')
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: calendar(1) input file
|
" Language: calendar(1) input file
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
" 2024-06-02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -13,7 +14,7 @@ set cpo&vim
|
|||||||
|
|
||||||
let b:undo_ftplugin = "setl com< cms< inc< fo<"
|
let b:undo_ftplugin = "setl com< cms< inc< fo<"
|
||||||
|
|
||||||
setlocal comments=s1:/*,mb:*,ex:*/ commentstring& include&
|
setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*\ %s\ */ include&
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
|
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
|
||||||
" Documentation: https://cgdb.github.io/docs/Configuring-CGDB.html
|
" Documentation: https://cgdb.github.io/docs/Configuring-CGDB.html
|
||||||
" Latest Revision: 2024-04-09
|
" Latest Revision: 2024-04-09
|
||||||
|
" 2024-05-23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
@ -14,7 +15,7 @@ set cpoptions&vim
|
|||||||
|
|
||||||
let b:undo_ftplugin = 'setl com< cms<'
|
let b:undo_ftplugin = 'setl com< cms<'
|
||||||
|
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
setlocal comments=:#
|
setlocal comments=:#
|
||||||
|
|
||||||
let &cpoptions = s:save_cpoptions
|
let &cpoptions = s:save_cpoptions
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
" Previous Maintainer: Dan Sharp
|
" Previous Maintainer: Dan Sharp
|
||||||
" Contributor: Johannes Zellner <johannes@zellner.org>
|
" Contributor: Johannes Zellner <johannes@zellner.org>
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2024 Jan 14
|
||||||
|
" 2024 May 23 by Riley Bruins ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -14,7 +15,7 @@ let s:save_cpo = &cpo
|
|||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
setlocal comments=:#
|
setlocal comments=:#
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
setlocal formatoptions-=t
|
setlocal formatoptions-=t
|
||||||
setlocal formatoptions+=crql
|
setlocal formatoptions+=crql
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Last Change: 2020 Dec 21
|
" Last Change: 2020 Dec 21
|
||||||
|
" 2024 Jun 02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -14,7 +15,7 @@ set cpo&vim
|
|||||||
|
|
||||||
let b:undo_ftplugin = "setl com< cms< inc< fo< ofu< isk<"
|
let b:undo_ftplugin = "setl com< cms< inc< fo< ofu< isk<"
|
||||||
|
|
||||||
setlocal comments=s1:/*,mb:*,ex:*/ commentstring&
|
setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*\ %s\ */
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
setlocal omnifunc=csscomplete#CompleteCSS
|
setlocal omnifunc=csscomplete#CompleteCSS
|
||||||
setlocal iskeyword+=-
|
setlocal iskeyword+=-
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: XDG desktop entry
|
" Language: XDG desktop entry
|
||||||
" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
|
" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
|
||||||
" Last Change: 2022-07-26
|
" Last Change: 2022-07-26
|
||||||
|
" 2024-05-24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
@ -9,5 +10,5 @@ endif
|
|||||||
let b:did_ftplugin = v:true
|
let b:did_ftplugin = v:true
|
||||||
|
|
||||||
setl comments=:#
|
setl comments=:#
|
||||||
setl commentstring=#%s
|
setl commentstring=#\ %s
|
||||||
let b:undo_ftplugin = 'setl com< cms<'
|
let b:undo_ftplugin = 'setl com< cms<'
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
" Former maintainer: Dan Sharp
|
" Former maintainer: Dan Sharp
|
||||||
" Last Change: 2009 Jan 20
|
" Last Change: 2009 Jan 20
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
@ -15,7 +16,7 @@ let b:did_ftplugin = 1
|
|||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
setlocal commentstring=<!--%s-->
|
setlocal commentstring=<!--\ %s\ -->
|
||||||
setlocal comments=s:<!--,m:\ \ \ \ \ ,e:-->
|
setlocal comments=s:<!--,m:\ \ \ \ \ ,e:-->
|
||||||
|
|
||||||
setlocal formatoptions-=t
|
setlocal formatoptions-=t
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
" Language: D script as described in "Solaris Dynamic Tracing Guide",
|
" Language: D script as described in "Solaris Dynamic Tracing Guide",
|
||||||
" http://docs.sun.com/app/docs/doc/817-6223
|
" http://docs.sun.com/app/docs/doc/817-6223
|
||||||
" Last Change: 2008/03/20
|
" Last Change: 2008/03/20
|
||||||
|
" 2024/05/23 by Riley Bruins <ribru17@gmail.com ('commentstring')
|
||||||
" Version: 1.2
|
" Version: 1.2
|
||||||
" Maintainer: Nicolas Weber <nicolasweber@gmx.de>
|
" Maintainer: Nicolas Weber <nicolasweber@gmx.de>
|
||||||
|
|
||||||
@ -26,8 +27,8 @@ setlocal fo-=t fo+=croql
|
|||||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/
|
||||||
|
|
||||||
" dtrace uses /* */ comments. Set this explicitly, just in case the user
|
" dtrace uses /* */ comments. Set this explicitly, just in case the user
|
||||||
" changed this (/*%s*/ is the default)
|
" changed this (/*\ %s\ */ is the default)
|
||||||
setlocal commentstring=/*%s*/
|
setlocal commentstring=/*\ %s\ */
|
||||||
|
|
||||||
setlocal iskeyword+=@,$
|
setlocal iskeyword+=@,$
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: dts/dtsi (device tree files)
|
" Language: dts/dtsi (device tree files)
|
||||||
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
|
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
|
||||||
" Latest Revision: 2024 Apr 12
|
" Latest Revision: 2024 Apr 12
|
||||||
|
" 2024 Jun 02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
@ -12,5 +13,5 @@ let b:undo_ftplugin = 'setl inc< cms< com<'
|
|||||||
|
|
||||||
setlocal include=^\\%(#include\\\|/include/\\)
|
setlocal include=^\\%(#include\\\|/include/\\)
|
||||||
" same as C
|
" same as C
|
||||||
setlocal commentstring&
|
setlocal commentstring=/*\ %s\ */
|
||||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
" Eduardo Lopez (http://github.com/tapichu)
|
" Eduardo Lopez (http://github.com/tapichu)
|
||||||
" Arvid Bjurklint (http://github.com/slarwise)
|
" Arvid Bjurklint (http://github.com/slarwise)
|
||||||
" Paweł Zacharek (http://github.com/subc2)
|
" Paweł Zacharek (http://github.com/subc2)
|
||||||
" Last Update: 2023-Dec-20
|
" Riley Bruins (http://github.com/ribru17) ('commentstring')
|
||||||
|
" Last Update: 2024 May 23
|
||||||
" License: Vim license
|
" License: Vim license
|
||||||
" URL: https://github.com/vim-erlang/vim-erlang-runtime
|
" URL: https://github.com/vim-erlang/vim-erlang-runtime
|
||||||
|
|
||||||
@ -27,7 +28,7 @@ if get(g:, 'erlang_folding', 0)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
setlocal comments=:%%%,:%%,:%
|
setlocal comments=:%%%,:%%,:%
|
||||||
setlocal commentstring=%%s
|
setlocal commentstring=%\ %s
|
||||||
|
|
||||||
setlocal formatoptions+=ro
|
setlocal formatoptions+=ro
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2022 May 15
|
" Last Change: 2022 May 15
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -125,7 +126,7 @@ if exists("loaded_matchit")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" TODO: comments=
|
" TODO: comments=
|
||||||
setlocal commentstring=<%#%s%>
|
setlocal commentstring=<%#\ %s\ %>
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl cms< " .
|
let b:undo_ftplugin = "setl cms< " .
|
||||||
\ " | unlet! b:browsefilter b:match_words | " . b:undo_ftplugin
|
\ " | unlet! b:browsefilter b:match_words | " . b:undo_ftplugin
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
" Language: Fennel
|
" Language: Fennel
|
||||||
" Maintainer: Gregory Anders <greg[NOSPAM]@gpanders.com>
|
" Maintainer: Gregory Anders <greg[NOSPAM]@gpanders.com>
|
||||||
" Last Update: 2023 Jun 9
|
" Last Update: 2023 Jun 9
|
||||||
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal commentstring=;%s
|
setlocal commentstring=;\ %s
|
||||||
setlocal comments=:;;,:;
|
setlocal comments=:;;,:;
|
||||||
setlocal formatoptions-=t
|
setlocal formatoptions-=t
|
||||||
setlocal suffixesadd=.fnl
|
setlocal suffixesadd=.fnl
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
" Repository: https://github.com/nickeb96/fish.vim
|
" Repository: https://github.com/nickeb96/fish.vim
|
||||||
" Last Change: February 1, 2023
|
" Last Change: February 1, 2023
|
||||||
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -12,7 +13,7 @@ let b:did_ftplugin = 1
|
|||||||
|
|
||||||
setlocal iskeyword=@,48-57,_,192-255,-,.
|
setlocal iskeyword=@,48-57,_,192-255,-,.
|
||||||
setlocal comments=:#
|
setlocal comments=:#
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
setlocal formatoptions+=crjq
|
setlocal formatoptions+=crjq
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl cms< com< fo< isk<"
|
let b:undo_ftplugin = "setl cms< com< fo< isk<"
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
" Doug Kearns, and Fritz Reese.
|
" Doug Kearns, and Fritz Reese.
|
||||||
" Last Change: 2023 Dec 22
|
" Last Change: 2023 Dec 22
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do these settings when not done yet for this buffer
|
" Only do these settings when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -89,7 +90,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Set commentstring for foldmethod=marker
|
" Set commentstring for foldmethod=marker
|
||||||
setlocal cms=!%s
|
setlocal cms=!\ %s
|
||||||
|
|
||||||
" Tabs are not a good idea in Fortran so the default is to expand tabs
|
" Tabs are not a good idea in Fortran so the default is to expand tabs
|
||||||
if !exists("fortran_have_tabs")
|
if !exists("fortran_have_tabs")
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
|
" Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
|
||||||
" URL: https://raw.github.com/rid9/vim-fstab/master/ftplugin/fstab.vim
|
" URL: https://raw.github.com/rid9/vim-fstab/master/ftplugin/fstab.vim
|
||||||
" Last Change: 2021 Jan 02
|
" Last Change: 2021 Jan 02
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
" Version: 1.0
|
" Version: 1.0
|
||||||
"
|
"
|
||||||
" Credits:
|
" Credits:
|
||||||
@ -13,7 +14,7 @@ if exists("b:did_ftplugin")
|
|||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
let b:undo_ftplugin = "setlocal commentstring<"
|
let b:undo_ftplugin = "setlocal commentstring<"
|
||||||
|
|
||||||
" vim: ts=8 ft=vim
|
" vim: ts=8 ft=vim
|
||||||
|
@ -3,11 +3,12 @@
|
|||||||
" Maintainer: Michaël Peeters <NOSPAMm.vim@noekeon.org>
|
" Maintainer: Michaël Peeters <NOSPAMm.vim@noekeon.org>
|
||||||
" Last Changed: 2017-10-26
|
" Last Changed: 2017-10-26
|
||||||
" 2024-04-10: - add Matchit support (by Vim Project)
|
" 2024-04-10: - add Matchit support (by Vim Project)
|
||||||
|
" 2024-04-23: - add space to commentstring (by Riley Bruins) ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
setlocal include=^\\s*source
|
setlocal include=^\\s*source
|
||||||
|
|
||||||
" Undo the stuff we changed.
|
" Undo the stuff we changed.
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: groovy
|
" Language: groovy
|
||||||
" Maintainer: Justin M. Keyes <justinkz@gmail.com>
|
" Maintainer: Justin M. Keyes <justinkz@gmail.com>
|
||||||
" Last Change: 2016 May 22
|
" Last Change: 2016 May 22
|
||||||
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
@ -13,7 +14,7 @@ set cpo-=C
|
|||||||
|
|
||||||
let b:undo_ftplugin = 'setlocal commentstring<'
|
let b:undo_ftplugin = 'setlocal commentstring<'
|
||||||
|
|
||||||
setlocal commentstring=//%s
|
setlocal commentstring=//\ %s
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Version: 2.0.6.0
|
" Version: 2.0.6.0
|
||||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||||
" Last Change: 2021 Jan 19
|
" Last Change: 2021 Jan 19
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -31,7 +32,7 @@ if &tw == 0
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Comments start with a double quote
|
" Comments start with a double quote
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
|
|
||||||
" Move around functions.
|
" Move around functions.
|
||||||
noremap <silent><buffer> [[ :call search('^\s*sub\>', "bW")<CR>
|
noremap <silent><buffer> [[ :call search('^\s*sub\>', "bW")<CR>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Previous Maintainer: Dan Sharp
|
" Previous Maintainer: Dan Sharp
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2024 Jan 14
|
||||||
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -13,7 +14,7 @@ let s:save_cpo = &cpo
|
|||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
setlocal matchpairs+=<:>
|
setlocal matchpairs+=<:>
|
||||||
setlocal commentstring=<!--%s-->
|
setlocal commentstring=<!--\ %s\ -->
|
||||||
setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
|
setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
|
||||||
|
|
||||||
let b:undo_ftplugin = "setlocal comments< commentstring< matchpairs<"
|
let b:undo_ftplugin = "setlocal comments< commentstring< matchpairs<"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
" 2024-06-02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -14,7 +15,7 @@ set cpo&vim
|
|||||||
|
|
||||||
let b:undo_ftplugin = "setl com< cms< fo<"
|
let b:undo_ftplugin = "setl com< cms< fo<"
|
||||||
|
|
||||||
setlocal comments=s1:/*,mb:*,ex:*/ commentstring&
|
setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*\ %s\ */
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Benji Fisher, Ph.D. <benji@member.AMS.org>
|
" Maintainer: Benji Fisher, Ph.D. <benji@member.AMS.org>
|
||||||
" Version: 1.0
|
" Version: 1.0
|
||||||
" Last Change: Wed 19 Apr 2006
|
" Last Change: Wed 19 Apr 2006
|
||||||
|
" Last Change: Thu 23 May 2024 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer.
|
" Only do this when not done yet for this buffer.
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -23,7 +24,7 @@ setlocal com=sO:%\ -,mO:%\ \ ,eO:%%,:%
|
|||||||
|
|
||||||
" Set 'commentstring' to recognize the % comment character:
|
" Set 'commentstring' to recognize the % comment character:
|
||||||
" (Thanks to Ajit Thakkar.)
|
" (Thanks to Ajit Thakkar.)
|
||||||
setlocal cms=%%s
|
setlocal cms=%\ %s
|
||||||
|
|
||||||
" Allow "[d" to be used to find a macro definition:
|
" Allow "[d" to be used to find a macro definition:
|
||||||
let &l:define='\\\([egx]\|char\|mathchar\|count\|dimen\|muskip\|skip\|toks\)\='
|
let &l:define='\\\([egx]\|char\|mathchar\|count\|dimen\|muskip\|skip\|toks\)\='
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
" Repository: https://github.com/zzzyxwvut/java-vim.git
|
" Repository: https://github.com/zzzyxwvut/java-vim.git
|
||||||
" Last Change: 2024 Apr 18
|
" Last Change: 2024 Apr 18
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
@ -61,7 +62,7 @@ setlocal formatoptions-=t formatoptions+=croql
|
|||||||
" Set 'comments' to format dashed lists in comments. Behaves just like C.
|
" Set 'comments' to format dashed lists in comments. Behaves just like C.
|
||||||
setlocal comments& comments^=sO:*\ -,mO:*\ \ ,exO:*/
|
setlocal comments& comments^=sO:*\ -,mO:*\ \ ,exO:*/
|
||||||
|
|
||||||
setlocal commentstring=//%s
|
setlocal commentstring=//\ %s
|
||||||
|
|
||||||
" Change the :browse e filter to primarily show Java-related files.
|
" Change the :browse e filter to primarily show Java-related files.
|
||||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Contributor: Romain Lafourcade <romainlafourcade@gmail.com>
|
" Contributor: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2024 Jan 14
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -24,7 +25,7 @@ endif
|
|||||||
" Set 'comments' to format dashed lists in comments.
|
" Set 'comments' to format dashed lists in comments.
|
||||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||||
|
|
||||||
setlocal commentstring=//%s
|
setlocal commentstring=//\ %s
|
||||||
|
|
||||||
" Change the :browse e filter to primarily show JavaScript-related files.
|
" Change the :browse e filter to primarily show JavaScript-related files.
|
||||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: jq
|
" Language: jq
|
||||||
" Maintainer: Vito <vito.blog@gmail.com>
|
" Maintainer: Vito <vito.blog@gmail.com>
|
||||||
" Last Change: 2024 Apr 29
|
" Last Change: 2024 Apr 29
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
" Upstream: https://github.com/vito-c/jq.vim
|
" Upstream: https://github.com/vito-c/jq.vim
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
@ -10,7 +11,7 @@ endif
|
|||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal include=^\\s*\\%(import\\\|include\\)
|
setlocal include=^\\s*\\%(import\\\|include\\)
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
compiler jq
|
compiler jq
|
||||||
|
|
||||||
let b:undo_ftplugin = 'setl commentstring< include<'
|
let b:undo_ftplugin = 'setl commentstring< include<'
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
" https://github.com/kevinoid/vim-jsonc
|
" https://github.com/kevinoid/vim-jsonc
|
||||||
" License: MIT
|
" License: MIT
|
||||||
" Last Change: 2021 Nov 22
|
" Last Change: 2021 Nov 22
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
runtime! ftplugin/json.vim
|
runtime! ftplugin/json.vim
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Set comment (formatting) related options. {{{1
|
" Set comment (formatting) related options. {{{1
|
||||||
setlocal commentstring=//%s comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
setlocal commentstring=//\ %s comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||||
|
|
||||||
" Let Vim know how to disable the plug-in.
|
" Let Vim know how to disable the plug-in.
|
||||||
let b:undo_ftplugin = 'setlocal commentstring< comments<'
|
let b:undo_ftplugin = 'setlocal commentstring< comments<'
|
||||||
|
13
runtime/ftplugin/lc.vim
Normal file
13
runtime/ftplugin/lc.vim
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: Elsa
|
||||||
|
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||||
|
" Last Change: 2024 May 25
|
||||||
|
|
||||||
|
if exists('b:did_ftplugin')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
setl comments=:-- commentstring=--\ %s
|
||||||
|
|
||||||
|
let b:undo_ftplugin = 'setl com< cms<'
|
@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: ld(1) script
|
" Language: ld(1) script
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008 Jul 09
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -13,7 +14,7 @@ set cpo&vim
|
|||||||
|
|
||||||
let b:undo_ftplugin = "setl com< cms< inc< fo<"
|
let b:undo_ftplugin = "setl com< cms< inc< fo<"
|
||||||
|
|
||||||
setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*%s*/ include=^\\s*INCLUDE
|
setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*\ %s\ */ include=^\\s*INCLUDE
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Liquid
|
" Language: Liquid
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Last Change: 2022 Mar 15
|
" Last Change: 2022 Mar 15
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
@ -56,6 +57,6 @@ if exists('loaded_matchit')
|
|||||||
let b:match_words .= '\<\%(if\w*\|unless\|case\)\>:\<\%(elsif\|else\|when\)\>:\<end\%(if\w*\|unless\|case\)\>,\<\%(for\|tablerow\)\>:\%({%\s*\)\@<=empty\>:\<end\%(for\|tablerow\)\>,\<\(capture\|comment\|highlight\)\>:\<end\1\>'
|
let b:match_words .= '\<\%(if\w*\|unless\|case\)\>:\<\%(elsif\|else\|when\)\>:\<end\%(if\w*\|unless\|case\)\>,\<\%(for\|tablerow\)\>:\%({%\s*\)\@<=empty\>:\<end\%(for\|tablerow\)\>,\<\(capture\|comment\|highlight\)\>:\<end\1\>'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
setlocal commentstring={%\ comment\ %}%s{%\ endcomment\ %}
|
setlocal commentstring={%\ comment\ %}\ %s\ {%\ endcomment\ %}
|
||||||
|
|
||||||
let b:undo_ftplugin .= 'setl cms< | unlet! b:browsefilter b:match_words'
|
let b:undo_ftplugin .= 'setl cms< | unlet! b:browsefilter b:match_words'
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
" Original author: Dorai Sitaram <ds26@gte.com>
|
" Original author: Dorai Sitaram <ds26@gte.com>
|
||||||
" Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
|
" Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
|
||||||
" Last Change: Mar 10, 2021
|
" Last Change: Mar 10, 2021
|
||||||
|
" May 23, 2024 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -19,6 +20,6 @@ setl define=^\\s*(def\\k*
|
|||||||
setl formatoptions-=t
|
setl formatoptions-=t
|
||||||
setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
|
setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
|
||||||
setl lisp
|
setl lisp
|
||||||
setl commentstring=;%s
|
setl commentstring=;\ %s
|
||||||
|
|
||||||
let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp< commentstring<"
|
let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp< commentstring<"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Markdown
|
" Language: Markdown
|
||||||
" Maintainer: Tim Pope <https://github.com/tpope/vim-markdown>
|
" Maintainer: Tim Pope <https://github.com/tpope/vim-markdown>
|
||||||
" Last Change: 2023 Dec 28
|
" Last Change: 2023 Dec 28
|
||||||
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -12,7 +13,7 @@ runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
|
|||||||
let s:keepcpo= &cpo
|
let s:keepcpo= &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=<!--%s-->
|
setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=<!--\ %s\ -->
|
||||||
setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o
|
setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o
|
||||||
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]:\\&^.\\{4\\}
|
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]:\\&^.\\{4\\}
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Mathematica
|
" Language: Mathematica
|
||||||
" Maintainer: Ian Ford <ianf@wolfram.com>
|
" Maintainer: Ian Ford <ianf@wolfram.com>
|
||||||
" Last Change: 22 January 2019
|
" Last Change: 2019 Jan 22
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -13,4 +14,4 @@ let b:did_ftplugin = 1
|
|||||||
|
|
||||||
let b:undo_ftplugin = "setlocal commentstring<"
|
let b:undo_ftplugin = "setlocal commentstring<"
|
||||||
|
|
||||||
setlocal commentstring=\(*%s*\)
|
setlocal commentstring=\(*\ %s\ *\)
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Modula-2
|
" Language: Modula-2
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2024 Jan 14
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -17,7 +18,7 @@ if s:dialect ==# "r10"
|
|||||||
setlocal comments=s:(*,m:\ ,e:*),:!
|
setlocal comments=s:(*,m:\ ,e:*),:!
|
||||||
setlocal commentstring=!\ %s
|
setlocal commentstring=!\ %s
|
||||||
else
|
else
|
||||||
setlocal commentstring=(*%s*)
|
setlocal commentstring=(*\ %s\ *)
|
||||||
setlocal comments=s:(*,m:\ ,e:*)
|
setlocal comments=s:(*,m:\ ,e:*)
|
||||||
endif
|
endif
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Modula-3
|
" Language: Modula-3
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2024 Jan 14
|
||||||
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -12,7 +13,7 @@ let s:cpo_save = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
setlocal comments=s0:(*,mb:\ ,ex:*)
|
setlocal comments=s0:(*,mb:\ ,ex:*)
|
||||||
setlocal commentstring=(*%s*)
|
setlocal commentstring=(*\ %s\ *)
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
setlocal suffixesadd+=.m3
|
setlocal suffixesadd+=.m3
|
||||||
setlocal formatprg=m3pp
|
setlocal formatprg=m3pp
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
" Language: roff(7)
|
" Language: roff(7)
|
||||||
" Maintainer: Aman Verma
|
" Maintainer: Aman Verma
|
||||||
" Homepage: https://github.com/a-vrma/vim-nroff-ftplugin
|
" Homepage: https://github.com/a-vrma/vim-nroff-ftplugin
|
||||||
" Previous Maintainer: Chris Spiegel <cspiegel@gmail.com>
|
" Previous Maintainer: Chris Spiegel <cspiegel@gmail.com>
|
||||||
" Last Change: 2020 Nov 21
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal commentstring=.\\\"%s
|
setlocal commentstring=.\\\"\ %s
|
||||||
setlocal comments=:.\\\"
|
setlocal comments=:.\\\"
|
||||||
setlocal sections+=Sh
|
setlocal sections+=Sh
|
||||||
|
|
||||||
|
@ -2,8 +2,9 @@
|
|||||||
" Language: Oblivion Language (obl)
|
" Language: Oblivion Language (obl)
|
||||||
" Original Creator: Kat <katisntgood@gmail.com>
|
" Original Creator: Kat <katisntgood@gmail.com>
|
||||||
" Maintainer: Kat <katisntgood@gmail.com>
|
" Maintainer: Kat <katisntgood@gmail.com>
|
||||||
" Created: August 08, 2021
|
" Created: 2021 Aug 08
|
||||||
" Last Change: 13 November 2022
|
" Last Change: 2022 Nov 13
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -20,7 +21,7 @@ noremap <script> <buffer> <silent> ]] <nop>
|
|||||||
noremap <script> <buffer> <silent> [] <nop>
|
noremap <script> <buffer> <silent> [] <nop>
|
||||||
noremap <script> <buffer> <silent> ][ <nop>
|
noremap <script> <buffer> <silent> ][ <nop>
|
||||||
|
|
||||||
setlocal commentstring=;%s
|
setlocal commentstring=;\ %s
|
||||||
setlocal comments=:;
|
setlocal comments=:;
|
||||||
|
|
||||||
function s:NextSection(type, backwards, visual)
|
function s:NextSection(type, backwards, visual)
|
||||||
|
@ -5,12 +5,14 @@
|
|||||||
" Pierre Vittet <pierre-vittet@pvittet.com>
|
" Pierre Vittet <pierre-vittet@pvittet.com>
|
||||||
" Stefano Zacchiroli <zack@bononia.it>
|
" Stefano Zacchiroli <zack@bononia.it>
|
||||||
" Vincent Aravantinos <firstname.name@imag.fr>
|
" Vincent Aravantinos <firstname.name@imag.fr>
|
||||||
|
" Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
" URL: https://github.com/ocaml/vim-ocaml
|
" URL: https://github.com/ocaml/vim-ocaml
|
||||||
" Last Change:
|
" Last Change:
|
||||||
" 2013 Oct 27 - Added commentstring (MM)
|
" 2013 Oct 27 - Added commentstring (MM)
|
||||||
" 2013 Jul 26 - load default compiler settings (MM)
|
" 2013 Jul 26 - load default compiler settings (MM)
|
||||||
" 2013 Jul 24 - removed superfluous efm-setting (MM)
|
" 2013 Jul 24 - removed superfluous efm-setting (MM)
|
||||||
" 2013 Jul 22 - applied fixes supplied by Hirotaka Hamada (MM)
|
" 2013 Jul 22 - applied fixes supplied by Hirotaka Hamada (MM)
|
||||||
|
" 2024 May 23 - added space in commentstring (RB)
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -40,7 +42,7 @@ set cpo&vim
|
|||||||
" Comment string
|
" Comment string
|
||||||
setlocal comments=sr:(*\ ,mb:\ ,ex:*)
|
setlocal comments=sr:(*\ ,mb:\ ,ex:*)
|
||||||
setlocal comments^=sr:(**,mb:\ \ ,ex:*)
|
setlocal comments^=sr:(**,mb:\ \ ,ex:*)
|
||||||
setlocal commentstring=(*%s*)
|
setlocal commentstring=(*\ %s\ *)
|
||||||
|
|
||||||
" Add mappings, unless the user didn't want this.
|
" Add mappings, unless the user didn't want this.
|
||||||
if !exists("no_plugin_maps") && !exists("no_ocaml_maps")
|
if !exists("no_plugin_maps") && !exists("no_ocaml_maps")
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
vim9script
|
vim9script
|
||||||
|
|
||||||
# Vim filetype plugin file
|
# Vim filetype plugin file
|
||||||
# Language: Odin
|
# Language: Odin
|
||||||
# Maintainer: Maxim Kim <habamax@gmail.com>
|
# Maintainer: Maxim Kim <habamax@gmail.com>
|
||||||
# Website: https://github.com/habamax/vim-odin
|
# Website: https://github.com/habamax/vim-odin
|
||||||
# Last Change: 2024-01-15
|
# Last Change: 2024 Jan 15
|
||||||
|
# 2024-May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -16,5 +17,5 @@ b:undo_ftplugin = 'setlocal commentstring<'
|
|||||||
\ .. '| setlocal suffixesadd<'
|
\ .. '| setlocal suffixesadd<'
|
||||||
|
|
||||||
setlocal suffixesadd=.odin
|
setlocal suffixesadd=.odin
|
||||||
setlocal commentstring=//%s
|
setlocal commentstring=//\ %s
|
||||||
setlocal comments=s1:/*,mb:*,ex:*/,://
|
setlocal comments=s1:/*,mb:*,ex:*/,://
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: OpenVPN
|
" Language: OpenVPN
|
||||||
" Maintainer: ObserverOfTime <chronobserver@disroot.org>
|
" Maintainer: ObserverOfTime <chronobserver@disroot.org>
|
||||||
" Last Change: 2022 Oct 16
|
" Last Change: 2022 Oct 16
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
@ -9,6 +10,6 @@ endif
|
|||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal iskeyword+=-,.,/
|
setlocal iskeyword+=-,.,/
|
||||||
setlocal comments=:#,:; commentstring=#%s
|
setlocal comments=:#,:; commentstring=#\ %s
|
||||||
|
|
||||||
let b:undo_ftplugin = 'setl isk< com< cms<'
|
let b:undo_ftplugin = 'setl isk< com< cms<'
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Previous Maintainer: Dan Sharp
|
" Previous Maintainer: Dan Sharp
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2024 Jan 14
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
@ -11,7 +12,7 @@ let s:cpo_save = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
set comments=s:(*,m:\ ,e:*),s:{,m:\ ,e:}
|
set comments=s:(*,m:\ ,e:*),s:{,m:\ ,e:}
|
||||||
set commentstring={%s}
|
set commentstring={\ %s\ }
|
||||||
|
|
||||||
if exists("pascal_delphi")
|
if exists("pascal_delphi")
|
||||||
set comments+=:///
|
set comments+=:///
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
" Language: PDF
|
" Language: PDF
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
|
||||||
" Last Change: 2007 Dec 16
|
" Last Change: 2007 Dec 16
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal commentstring=%%s
|
setlocal commentstring=%\ %s
|
||||||
setlocal comments=:%
|
setlocal comments=:%
|
||||||
let b:undo_ftplugin = "setlocal cms< com< | unlet! b:match_words"
|
let b:undo_ftplugin = "setlocal cms< com< | unlet! b:match_words"
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
" 2023 Sep 07 by Vim Project (safety check: don't execute perl
|
" 2023 Sep 07 by Vim Project (safety check: don't execute perl
|
||||||
" from current directory)
|
" from current directory)
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
@ -22,7 +23,7 @@ setlocal formatoptions+=crqol
|
|||||||
setlocal keywordprg=perldoc\ -f
|
setlocal keywordprg=perldoc\ -f
|
||||||
|
|
||||||
setlocal comments=:#
|
setlocal comments=:#
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
|
|
||||||
" Provided by Ned Konz <ned at bike-nomad dot com>
|
" Provided by Ned Konz <ned at bike-nomad dot com>
|
||||||
"---------------------------------------------
|
"---------------------------------------------
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Previous Maintainer: Dan Sharp
|
" Previous Maintainer: Dan Sharp
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2024 Jan 14
|
||||||
|
" Last Change: 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -44,7 +45,7 @@ if exists("b:match_skip")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
setlocal comments=s1:/*,mb:*,ex:*/,://,:#
|
setlocal comments=s1:/*,mb:*,ex:*/,://,:#
|
||||||
setlocal commentstring=/*%s*/
|
setlocal commentstring=/*\ %s\ */
|
||||||
setlocal formatoptions+=l formatoptions-=t
|
setlocal formatoptions+=l formatoptions-=t
|
||||||
|
|
||||||
if get(g:, "php_autocomment", 1)
|
if get(g:, "php_autocomment", 1)
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" URL: https://github.com/PProvost/vim-ps1
|
" URL: https://github.com/PProvost/vim-ps1
|
||||||
" Last Change: 2021 Apr 02
|
" Last Change: 2021 Apr 02
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
@ -14,7 +15,7 @@ let s:cpo_save = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
setlocal tw=0
|
setlocal tw=0
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
setlocal formatoptions=tcqro
|
setlocal formatoptions=tcqro
|
||||||
" Enable autocompletion of hyphenated PowerShell commands,
|
" Enable autocompletion of hyphenated PowerShell commands,
|
||||||
" e.g. Get-Content or Get-ADUser
|
" e.g. Get-Content or Get-ADUser
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" URL: https://github.com/PProvost/vim-ps1
|
" URL: https://github.com/PProvost/vim-ps1
|
||||||
" Last Change: 2021 Apr 02
|
" Last Change: 2021 Apr 02
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
@ -14,7 +15,7 @@ let s:cpo_save = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
setlocal tw=0
|
setlocal tw=0
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
setlocal formatoptions=tcqro
|
setlocal formatoptions=tcqro
|
||||||
|
|
||||||
" Change the browse dialog on Win32 and GTK to show mainly PowerShell-related files
|
" Change the browse dialog on Win32 and GTK to show mainly PowerShell-related files
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Chase Knowlden <haroldknowlden@gmail.com>
|
" Maintainer: Chase Knowlden <haroldknowlden@gmail.com>
|
||||||
" Last Change: 2023 Aug 16
|
" Last Change: 2023 Aug 16
|
||||||
" 2023 Aug 23 by Vim Project (browsefilter)
|
" 2023 Aug 23 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists( 'b:did_ftplugin' )
|
if exists( 'b:did_ftplugin' )
|
||||||
finish
|
finish
|
||||||
@ -28,7 +29,7 @@ endif
|
|||||||
|
|
||||||
" Set 'comments' to format dashed lists in comments.
|
" Set 'comments' to format dashed lists in comments.
|
||||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||||
setlocal commentstring=//%s
|
setlocal commentstring=//\ %s
|
||||||
|
|
||||||
setlocal formatoptions-=t
|
setlocal formatoptions-=t
|
||||||
setlocal formatoptions+=croql
|
setlocal formatoptions+=croql
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
" Maintainer: D. Ben Knoble <ben.knoble+github@gmail.com>
|
" Maintainer: D. Ben Knoble <ben.knoble+github@gmail.com>
|
||||||
" Previous Maintainer: Will Langstroth <will@langstroth.com>
|
" Previous Maintainer: Will Langstroth <will@langstroth.com>
|
||||||
" URL: https://github.com/benknoble/vim-racket
|
" URL: https://github.com/benknoble/vim-racket
|
||||||
" Last Change: 2022 Aug 29
|
" Last Change: 2024 May 28
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -21,7 +20,7 @@ setlocal iskeyword=@,!,#-',*-:,<-Z,a-z,~,_,94
|
|||||||
setlocal comments=:;;;;,:;;;,:;;,:;
|
setlocal comments=:;;;;,:;;;,:;;,:;
|
||||||
setlocal formatoptions+=r
|
setlocal formatoptions+=r
|
||||||
|
|
||||||
"setlocal commentstring=;;%s
|
"setlocal commentstring=;;\ %s
|
||||||
setlocal commentstring=#\|\ %s\ \|#
|
setlocal commentstring=#\|\ %s\ \|#
|
||||||
|
|
||||||
setlocal formatprg=raco\ fmt
|
setlocal formatprg=raco\ fmt
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Raku
|
" Language: Raku
|
||||||
" Maintainer: vim-perl <vim-perl@googlegroups.com>
|
" Maintainer: vim-perl <vim-perl@googlegroups.com>
|
||||||
" Homepage: https://github.com/Raku/vim-raku
|
" Homepage: https://github.com/Raku/vim-raku
|
||||||
" Bugs/requests: https://github.com/Raku/vim-raku/issues
|
" Bugs/requests: https://github.com/Raku/vim-raku/issues
|
||||||
" Last Change: 2021-04-16
|
" Last Change: 2021 Apr 16
|
||||||
" Contributors: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
" Contributors: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
|
||||||
"
|
"
|
||||||
" Based on ftplugin/perl.vim by Dan Sharp <dwsharp at hotmail dot com>
|
" Based on ftplugin/perl.vim by Dan Sharp <dwsharp at hotmail dot com>
|
||||||
|
|
||||||
@ -21,7 +22,7 @@ setlocal formatoptions+=crqol
|
|||||||
setlocal keywordprg=p6doc
|
setlocal keywordprg=p6doc
|
||||||
|
|
||||||
setlocal comments=:#\|,:#=,:#
|
setlocal comments=:#\|,:#=,:#
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
|
|
||||||
" Provided by Ned Konz <ned at bike-nomad dot com>
|
" Provided by Ned Konz <ned at bike-nomad dot com>
|
||||||
"---------------------------------------------
|
"---------------------------------------------
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
" Language: Rust
|
" Language: Rust
|
||||||
" Description: Vim ftplugin for Rust
|
" Description: Vim ftplugin for Rust
|
||||||
" Maintainer: Chris Morgan <me@chrismorgan.info>
|
" Maintainer: Chris Morgan <me@chrismorgan.info>
|
||||||
" Last Change: 2024-03-17
|
" Last Change: 2024 Mar 17
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com ('commentstring')
|
||||||
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim
|
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -36,7 +37,7 @@ if get(g:, 'rust_bang_comment_leader', 0)
|
|||||||
else
|
else
|
||||||
setlocal comments=s0:/*!,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,://
|
setlocal comments=s0:/*!,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,://
|
||||||
endif
|
endif
|
||||||
setlocal commentstring=//%s
|
setlocal commentstring=//\ %s
|
||||||
setlocal formatoptions-=t formatoptions+=croqnl
|
setlocal formatoptions-=t formatoptions+=croqnl
|
||||||
" j was only added in 7.3.541, so stop complaints about its nonexistence
|
" j was only added in 7.3.541, so stop complaints about its nonexistence
|
||||||
silent! setlocal formatoptions+=j
|
silent! setlocal formatoptions+=j
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
" scdoc filetype plugin
|
" scdoc filetype plugin
|
||||||
" Maintainer: Gregory Anders <contact@gpanders.com>
|
" Maintainer: Gregory Anders <contact@gpanders.com>
|
||||||
" Last Updated: 2022-05-09
|
" Last Updated: 2022 May 09
|
||||||
" Upstream: https://github.com/gpanders/vim-scdoc
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
" Upstream: https://github.com/gpanders/vim-scdoc
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
@ -12,7 +13,7 @@ endif
|
|||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal comments=b:;
|
setlocal comments=b:;
|
||||||
setlocal commentstring=;%s
|
setlocal commentstring=;\ %s
|
||||||
setlocal formatoptions+=t
|
setlocal formatoptions+=t
|
||||||
setlocal noexpandtab
|
setlocal noexpandtab
|
||||||
setlocal shiftwidth=0
|
setlocal shiftwidth=0
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Scheme (R7RS)
|
" Language: Scheme (R7RS)
|
||||||
" Last Change: 2019-11-19
|
" Last Change: 2019 Nov 19
|
||||||
" Author: Evan Hanson <evhan@foldling.org>
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
" Maintainer: Evan Hanson <evhan@foldling.org>
|
" Author: Evan Hanson <evhan@foldling.org>
|
||||||
|
" Maintainer: Evan Hanson <evhan@foldling.org>
|
||||||
" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
|
" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
|
||||||
" Repository: https://git.foldling.org/vim-scheme.git
|
" Repository: https://git.foldling.org/vim-scheme.git
|
||||||
" URL: https://foldling.org/vim/ftplugin/scheme.vim
|
" URL: https://foldling.org/vim/ftplugin/scheme.vim
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
@ -16,7 +17,7 @@ set cpo&vim
|
|||||||
|
|
||||||
setl lisp
|
setl lisp
|
||||||
setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|#
|
setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|#
|
||||||
setl commentstring=;%s
|
setl commentstring=;\ %s
|
||||||
setl define=^\\s*(def\\k*
|
setl define=^\\s*(def\\k*
|
||||||
setl iskeyword=33,35-39,42-43,45-58,60-90,94,95,97-122,126
|
setl iskeyword=33,35-39,42-43,45-58,60-90,94,95,97-122,126
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Robert L Hicks <sigzero@gmail.com>
|
" Maintainer: Robert L Hicks <sigzero@gmail.com>
|
||||||
" Latest Revision: 2009-05-01
|
" Latest Revision: 2009-05-01
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -15,7 +16,7 @@ let s:cpo_save = &cpo
|
|||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
setlocal comments=:#
|
setlocal comments=:#
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
setlocal formatoptions+=croql
|
setlocal formatoptions+=croql
|
||||||
|
|
||||||
" Change the browse dialog on Windows to show mainly Tcl-related files
|
" Change the browse dialog on Windows to show mainly Tcl-related files
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: TypeScript
|
" Language: TypeScript
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2024 Jan 14
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -18,7 +19,7 @@ setlocal formatoptions-=t formatoptions+=croql
|
|||||||
" Set 'comments' to format dashed lists in comments.
|
" Set 'comments' to format dashed lists in comments.
|
||||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||||
|
|
||||||
setlocal commentstring=//%s
|
setlocal commentstring=//\ %s
|
||||||
|
|
||||||
setlocal suffixesadd+=.ts,.d.ts,.tsx,.js,.jsx,.cjs,.mjs
|
setlocal suffixesadd+=.ts,.d.ts,.tsx,.js,.jsx,.cjs,.mjs
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Vim
|
" Language: Vim
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2024 Apr 13
|
" Last Change: 2024 Apr 13
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
@ -51,7 +52,7 @@ setlocal keywordprg=:help
|
|||||||
|
|
||||||
" Comments starts with # in Vim9 script. We have to guess which one to use.
|
" Comments starts with # in Vim9 script. We have to guess which one to use.
|
||||||
if "\n" .. getline(1, 32)->join("\n") =~# '\n\s*vim9\%[script]\>'
|
if "\n" .. getline(1, 32)->join("\n") =~# '\n\s*vim9\%[script]\>'
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#\ %s
|
||||||
else
|
else
|
||||||
setlocal commentstring=\"%s
|
setlocal commentstring=\"%s
|
||||||
endif
|
endif
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: WebAssembly
|
" Language: WebAssembly
|
||||||
" Maintainer: rhysd <lin90162@yahoo.co.jp>
|
" Maintainer: rhysd <lin90162@yahoo.co.jp>
|
||||||
" Last Change: Nov 14, 2023
|
" Last Change: Nov 14, 2023
|
||||||
|
" May 24, 2024 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
" For bugs, patches and license go to https://github.com/rhysd/vim-wasm
|
" For bugs, patches and license go to https://github.com/rhysd/vim-wasm
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -10,7 +11,7 @@ endif
|
|||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal comments=s:(;,e:;),:;;
|
setlocal comments=s:(;,e:;),:;;
|
||||||
setlocal commentstring=(;%s;)
|
setlocal commentstring=(;\ %s\ ;)
|
||||||
setlocal formatoptions-=t
|
setlocal formatoptions-=t
|
||||||
setlocal iskeyword+=$,.,/
|
setlocal iskeyword+=$,.,/
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: X resources files like ~/.Xdefaults (xrdb)
|
" Language: X resources files like ~/.Xdefaults (xrdb)
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008 Jul 09
|
||||||
|
" 2024 Jun 03 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -13,7 +14,7 @@ set cpo&vim
|
|||||||
|
|
||||||
let b:undo_ftplugin = "setl com< cms< inc< fo<"
|
let b:undo_ftplugin = "setl com< cms< inc< fo<"
|
||||||
|
|
||||||
setlocal comments=s1:/*,mb:*,ex:*/,:! commentstring& inc&
|
setlocal comments=s1:/*,mb:*,ex:*/,:! commentstring=!\ %s inc&
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||||
" Last Changed: Dec 07th, 2018
|
" Last Changed: Dec 07th, 2018
|
||||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||||
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||||
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
|
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
|
||||||
" Previous Maintainer: Dan Sharp
|
" Previous Maintainer: Dan Sharp
|
||||||
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
|
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
|
||||||
@ -15,7 +16,7 @@ let b:did_ftplugin = 1
|
|||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
setlocal commentstring=<!--%s-->
|
setlocal commentstring=<!--\ %s\ -->
|
||||||
" Remove the middlepart from the comments section, as this causes problems:
|
" Remove the middlepart from the comments section, as this causes problems:
|
||||||
" https://groups.google.com/d/msg/vim_dev/x4GT-nqa0Kg/jvtRnEbtAnMJ
|
" https://groups.google.com/d/msg/vim_dev/x4GT-nqa0Kg/jvtRnEbtAnMJ
|
||||||
setlocal comments=s:<!--,e:-->
|
setlocal comments=s:<!--,e:-->
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Elsa
|
" Language: Elsa
|
||||||
" Maintainer: Miles Glapa-Grossklag <miles@glapa-grossklag.com>
|
" Maintainer: Miles Glapa-Grossklag <miles@glapa-grossklag.com>
|
||||||
" Last Change: 2023-01-29
|
" Last Change: 2023-01-29
|
||||||
|
" 2024 May 25 by Riley Bruins <ribru17@gmail.com> (move 'commentstring' to ftplugin)
|
||||||
|
|
||||||
if exists('b:current_syntax')
|
if exists('b:current_syntax')
|
||||||
finish
|
finish
|
||||||
@ -13,7 +14,6 @@ syntax match elsaKeyword "\v:"
|
|||||||
highlight link elsaKeyword Keyword
|
highlight link elsaKeyword Keyword
|
||||||
|
|
||||||
" Comments
|
" Comments
|
||||||
setlocal commentstring=--%s
|
|
||||||
syntax match elsaComment "\v--.*$"
|
syntax match elsaComment "\v--.*$"
|
||||||
highlight link elsaComment Comment
|
highlight link elsaComment Comment
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Mathematica
|
" Language: Mathematica
|
||||||
" Maintainer: steve layland <layland@wolfram.com>
|
" Maintainer: steve layland <layland@wolfram.com>
|
||||||
" Last Change: 2012 Feb 03 by Thilo Six
|
" Last Change: 2012 Feb 03 by Thilo Six
|
||||||
|
" 2024 May 24 by Riley Bruins <ribru17@gmail.com> (remove 'commentstring')
|
||||||
" Source: http://members.wri.com/layland/vim/syntax/mma.vim
|
" Source: http://members.wri.com/layland/vim/syntax/mma.vim
|
||||||
" http://vim.sourceforge.net/scripts/script.php?script_id=1273
|
" http://vim.sourceforge.net/scripts/script.php?script_id=1273
|
||||||
" Id: $Id: mma.vim,v 1.4 2006/04/14 20:40:38 vimboss Exp $
|
" Id: $Id: mma.vim,v 1.4 2006/04/14 20:40:38 vimboss Exp $
|
||||||
@ -248,7 +249,6 @@ syntax match mmaBoring "[(){}]" contained
|
|||||||
"syntax region mmaRegion start="(\*\+[^<]*<!--[^>]*\*\+)" end="--> \*)" containedin=ALLBUT,@mmaStrings transparent fold keepend
|
"syntax region mmaRegion start="(\*\+[^<]*<!--[^>]*\*\+)" end="--> \*)" containedin=ALLBUT,@mmaStrings transparent fold keepend
|
||||||
|
|
||||||
" show fold text
|
" show fold text
|
||||||
set commentstring='(*%s*)'
|
|
||||||
"set foldtext=MmaFoldText()
|
"set foldtext=MmaFoldText()
|
||||||
|
|
||||||
"function MmaFoldText()
|
"function MmaFoldText()
|
||||||
|
@ -629,7 +629,7 @@ static struct vimoption options[] =
|
|||||||
{"commentstring", "cms", P_STRING|P_ALLOCED|P_VI_DEF|P_CURSWANT,
|
{"commentstring", "cms", P_STRING|P_ALLOCED|P_VI_DEF|P_CURSWANT,
|
||||||
#ifdef FEAT_FOLDING
|
#ifdef FEAT_FOLDING
|
||||||
(char_u *)&p_cms, PV_CMS, did_set_commentstring, NULL,
|
(char_u *)&p_cms, PV_CMS, did_set_commentstring, NULL,
|
||||||
{(char_u *)"/*%s*/", (char_u *)0L}
|
{(char_u *)"/* %s */", (char_u *)0L}
|
||||||
#else
|
#else
|
||||||
(char_u *)NULL, PV_NONE, NULL, NULL,
|
(char_u *)NULL, PV_NONE, NULL, NULL,
|
||||||
{(char_u *)0L, (char_u *)0L}
|
{(char_u *)0L, (char_u *)0L}
|
||||||
|
@ -76,7 +76,7 @@ let test_values = {
|
|||||||
\ 'clipboard': [['', 'unnamed', 'autoselect,unnamed', 'html', 'exclude:vimdisplay'], ['xxx', '\ze*', 'exclude:\\%(']],
|
\ 'clipboard': [['', 'unnamed', 'autoselect,unnamed', 'html', 'exclude:vimdisplay'], ['xxx', '\ze*', 'exclude:\\%(']],
|
||||||
\ 'colorcolumn': [['', '8', '+2'], ['xxx']],
|
\ 'colorcolumn': [['', '8', '+2'], ['xxx']],
|
||||||
\ 'comments': [['', 'b:#'], ['xxx']],
|
\ 'comments': [['', 'b:#'], ['xxx']],
|
||||||
\ 'commentstring': [['', '/*%s*/'], ['xxx']],
|
\ 'commentstring': [['', '/*\ %s\ */'], ['xxx']],
|
||||||
\ 'complete': [['', 'w,b'], ['xxx']],
|
\ 'complete': [['', 'w,b'], ['xxx']],
|
||||||
\ 'concealcursor': [['', 'n', 'nvic'], ['xxx']],
|
\ 'concealcursor': [['', 'n', 'nvic'], ['xxx']],
|
||||||
\ 'completeopt': [['', 'menu', 'menu,longest'], ['xxx', 'menu,,,longest,']],
|
\ 'completeopt': [['', 'menu', 'menu,longest'], ['xxx', 'menu,,,longest,']],
|
||||||
|
@ -8,7 +8,73 @@ func PrepIndent(arg)
|
|||||||
return [a:arg] + repeat(["\t".a:arg], 5)
|
return [a:arg] + repeat(["\t".a:arg], 5)
|
||||||
endfu
|
endfu
|
||||||
|
|
||||||
func Test_address_fold()
|
func Test_address_fold_new_default_commentstring()
|
||||||
|
" Test with the new commentstring defaults, that includes padding after v9.1.464
|
||||||
|
new
|
||||||
|
call setline(1, ['int FuncName() {/* {{{ */', 1, 2, 3, 4, 5, '}/* }}} */',
|
||||||
|
\ 'after fold 1', 'after fold 2', 'after fold 3'])
|
||||||
|
setl fen fdm=marker
|
||||||
|
" The next commands should all copy the same part of the buffer,
|
||||||
|
" regardless of the addressing type, since the part to be copied
|
||||||
|
" is folded away
|
||||||
|
:1y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
:.y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
:.+y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
:.,.y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
:sil .1,.y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
" use silent to make E493 go away
|
||||||
|
:sil .+,.y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
:,y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
:,+y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */','after fold 1'], getreg(0,1,1))
|
||||||
|
" using .+3 as second address should c opy the whole folded line + the next 3
|
||||||
|
" lines
|
||||||
|
:.,+3y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */',
|
||||||
|
\ 'after fold 1', 'after fold 2' , 'after fold 3'], getreg(0,1,1))
|
||||||
|
:sil .,-2y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3', '4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
|
||||||
|
" now test again with folding disabled
|
||||||
|
set nofoldenable
|
||||||
|
:1y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */'], getreg(0,1,1))
|
||||||
|
:.y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */'], getreg(0,1,1))
|
||||||
|
:.+y
|
||||||
|
call assert_equal(['1'], getreg(0,1,1) )
|
||||||
|
:.,.y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */'], getreg(0,1,1))
|
||||||
|
" use silent to make E493 go away
|
||||||
|
:sil .1,.y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1'], getreg(0,1,1))
|
||||||
|
" use silent to make E493 go away
|
||||||
|
:sil .+,.y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1'], getreg(0,1,1))
|
||||||
|
:,y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */'], getreg(0,1,1))
|
||||||
|
:,+y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1'], getreg(0,1,1))
|
||||||
|
" using .+3 as second address should c opy the whole folded line + the next 3
|
||||||
|
" lines
|
||||||
|
:.,+3y
|
||||||
|
call assert_equal(['int FuncName() {/* {{{ */', '1', '2', '3'], getreg(0,1,1))
|
||||||
|
:7
|
||||||
|
:sil .,-2y
|
||||||
|
call assert_equal(['4', '5', '}/* }}} */'], getreg(0,1,1))
|
||||||
|
|
||||||
|
quit!
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func Test_address_fold_old_default_commentstring()
|
||||||
|
" Test with the old commentstring defaults, before v9.1.464
|
||||||
new
|
new
|
||||||
call setline(1, ['int FuncName() {/*{{{*/', 1, 2, 3, 4, 5, '}/*}}}*/',
|
call setline(1, ['int FuncName() {/*{{{*/', 1, 2, 3, 4, 5, '}/*}}}*/',
|
||||||
\ 'after fold 1', 'after fold 2', 'after fold 3'])
|
\ 'after fold 1', 'after fold 2', 'after fold 3'])
|
||||||
@ -719,7 +785,7 @@ func Test_fold_create_marker_in_C()
|
|||||||
call append(0, content)
|
call append(0, content)
|
||||||
call cursor(c + 1, 1)
|
call cursor(c + 1, 1)
|
||||||
norm! zfG
|
norm! zfG
|
||||||
call assert_equal(content[c] . (c < 4 ? '{{{' : '/*{{{*/'), getline(c + 1))
|
call assert_equal(content[c] . (c < 4 ? '{{{' : '/* {{{ */'), getline(c + 1))
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
set fdm& fdl&
|
set fdm& fdl&
|
||||||
|
@ -402,17 +402,17 @@ func Test_normal08_fold()
|
|||||||
" First fold
|
" First fold
|
||||||
norm! V4jzf
|
norm! V4jzf
|
||||||
" check that folds have been created
|
" check that folds have been created
|
||||||
call assert_equal(['50/*{{{*/', '51', '52', '53', '54/*}}}*/'], getline(50,54))
|
call assert_equal(['50/* {{{ */', '51', '52', '53', '54/* }}} */'], getline(50,54))
|
||||||
" Second fold
|
" Second fold
|
||||||
46
|
46
|
||||||
norm! V10jzf
|
norm! V10jzf
|
||||||
" check that folds have been created
|
" check that folds have been created
|
||||||
call assert_equal('46/*{{{*/', getline(46))
|
call assert_equal('46/* {{{ */', getline(46))
|
||||||
call assert_equal('60/*}}}*/', getline(60))
|
call assert_equal('60/* }}} */', getline(60))
|
||||||
norm! k
|
norm! k
|
||||||
call assert_equal('45', getline('.'))
|
call assert_equal('45', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('46/*{{{*/', getline('.'))
|
call assert_equal('46/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('61', getline('.'))
|
call assert_equal('61', getline('.'))
|
||||||
norm! k
|
norm! k
|
||||||
@ -421,12 +421,12 @@ func Test_normal08_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('45', getline('.'))
|
call assert_equal('45', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('46/*{{{*/', getline('.'))
|
call assert_equal('46/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('47', getline('.'))
|
call assert_equal('47', getline('.'))
|
||||||
norm! k
|
norm! k
|
||||||
norm! zcVzO
|
norm! zcVzO
|
||||||
call assert_equal('46/*{{{*/', getline('.'))
|
call assert_equal('46/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('47', getline('.'))
|
call assert_equal('47', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
@ -434,7 +434,7 @@ func Test_normal08_fold()
|
|||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49', getline('.'))
|
call assert_equal('49', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51', getline('.'))
|
call assert_equal('51', getline('.'))
|
||||||
" delete folds
|
" delete folds
|
||||||
@ -1383,14 +1383,14 @@ func Test_normal18_z_fold()
|
|||||||
" First fold
|
" First fold
|
||||||
norm! 4zF
|
norm! 4zF
|
||||||
" check that folds have been created
|
" check that folds have been created
|
||||||
call assert_equal(['50/*{{{*/', '51', '52', '53/*}}}*/'], getline(50,53))
|
call assert_equal(['50/* {{{ */', '51', '52', '53/* }}} */'], getline(50,53))
|
||||||
|
|
||||||
" Test for zd
|
" Test for zd
|
||||||
51
|
51
|
||||||
norm! 2zF
|
norm! 2zF
|
||||||
call assert_equal(2, foldlevel('.'))
|
call assert_equal(2, foldlevel('.'))
|
||||||
norm! kzd
|
norm! kzd
|
||||||
call assert_equal(['50', '51/*{{{*/', '52/*}}}*/', '53'], getline(50,53))
|
call assert_equal(['50', '51/* {{{ */', '52/* }}} */', '53'], getline(50,53))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal(1, foldlevel('.'))
|
call assert_equal(1, foldlevel('.'))
|
||||||
|
|
||||||
@ -1409,7 +1409,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! 2zF
|
norm! 2zF
|
||||||
90
|
90
|
||||||
norm! 4zF
|
norm! 4zF
|
||||||
call assert_equal(['85/*{{{*/', '86/*{{{*/', '87/*}}}*/', '88/*}}}*/', '89', '90/*{{{*/', '91', '92', '93/*}}}*/'], getline(85,93))
|
call assert_equal(['85/* {{{ */', '86/* {{{ */', '87/* }}} */', '88/* }}} */', '89', '90/* {{{ */', '91', '92', '93/* }}} */'], getline(85,93))
|
||||||
norm! zE
|
norm! zE
|
||||||
call assert_equal(['85', '86', '87', '88', '89', '90', '91', '92', '93'], getline(85,93))
|
call assert_equal(['85', '86', '87', '88', '89', '90', '91', '92', '93'], getline(85,93))
|
||||||
|
|
||||||
@ -1421,9 +1421,9 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('49', getline('.'))
|
call assert_equal('49', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
call assert_equal(0, &foldenable)
|
call assert_equal(0, &foldenable)
|
||||||
@ -1433,7 +1433,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! zN
|
norm! zN
|
||||||
call assert_equal('49', getline('.'))
|
call assert_equal('49', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
call assert_equal(1, &foldenable)
|
call assert_equal(1, &foldenable)
|
||||||
@ -1454,9 +1454,9 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('49', getline('.'))
|
call assert_equal('49', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
50
|
50
|
||||||
@ -1464,7 +1464,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('49', getline('.'))
|
call assert_equal('49', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
|
|
||||||
@ -1473,14 +1473,14 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
49
|
49
|
||||||
norm! za
|
norm! za
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
@ -1494,11 +1494,11 @@ func Test_normal18_z_fold()
|
|||||||
norm! 2k
|
norm! 2k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
|
|
||||||
@ -1510,11 +1510,11 @@ func Test_normal18_z_fold()
|
|||||||
norm! 2k
|
norm! 2k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
|
|
||||||
@ -1526,7 +1526,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1546,7 +1546,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
@ -1555,7 +1555,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1565,7 +1565,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! zCk
|
norm! zCk
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1576,7 +1576,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! zx
|
norm! zx
|
||||||
call assert_equal(1, &foldenable)
|
call assert_equal(1, &foldenable)
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1588,17 +1588,17 @@ func Test_normal18_z_fold()
|
|||||||
norm! 3k
|
norm! 3k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('53', getline('.'))
|
call assert_equal('53', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('54/*}}}*/', getline('.'))
|
call assert_equal('54/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1610,15 +1610,15 @@ func Test_normal18_z_fold()
|
|||||||
call assert_equal(1, &foldenable)
|
call assert_equal(1, &foldenable)
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('53', getline('.'))
|
call assert_equal('53', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('54/*}}}*/', getline('.'))
|
call assert_equal('54/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1631,7 +1631,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1648,7 +1648,7 @@ func Test_normal18_z_fold()
|
|||||||
norm! k
|
norm! k
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1667,7 +1667,7 @@ func Test_normal18_z_fold()
|
|||||||
call assert_equal(0, &foldlevel)
|
call assert_equal(0, &foldlevel)
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('55', getline('.'))
|
call assert_equal('55', getline('.'))
|
||||||
|
|
||||||
@ -1685,11 +1685,11 @@ func Test_normal18_z_fold()
|
|||||||
call assert_equal(2, &foldlevel)
|
call assert_equal(2, &foldlevel)
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
|
|
||||||
@ -1705,24 +1705,24 @@ func Test_normal18_z_fold()
|
|||||||
call assert_equal(2, &foldlevel)
|
call assert_equal(2, &foldlevel)
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
call append(50, ['a /*{{{*/', 'b /*}}}*/'])
|
call append(50, ['a /* {{{ */', 'b /* }}} */'])
|
||||||
48
|
48
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('a /*{{{*/', getline('.'))
|
call assert_equal('a /* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
48
|
48
|
||||||
@ -1731,15 +1731,15 @@ func Test_normal18_z_fold()
|
|||||||
call assert_equal(3, &foldlevel)
|
call assert_equal(3, &foldlevel)
|
||||||
call assert_equal('48', getline('.'))
|
call assert_equal('48', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('49/*{{{*/', getline('.'))
|
call assert_equal('49/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('50/*{{{*/', getline('.'))
|
call assert_equal('50/* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('a /*{{{*/', getline('.'))
|
call assert_equal('a /* {{{ */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('b /*}}}*/', getline('.'))
|
call assert_equal('b /* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('51/*}}}*/', getline('.'))
|
call assert_equal('51/* }}} */', getline('.'))
|
||||||
norm! j
|
norm! j
|
||||||
call assert_equal('52', getline('.'))
|
call assert_equal('52', getline('.'))
|
||||||
|
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
464,
|
||||||
/**/
|
/**/
|
||||||
463,
|
463,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user