diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-06-15 09:20:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-15 09:20:32 +0200 |
| commit | 504d7decbdef55d58e62217a0a54cbee2a0944cc (patch) | |
| tree | 09922dd511d071bdde73df146eca5bda4741c759 /runtime/ftplugin/tap.vim | |
| parent | 1493efdc141f0bc0a472b60f87927b3d5ab59f5e (diff) | |
| download | rneovim-504d7decbdef55d58e62217a0a54cbee2a0944cc.tar.gz rneovim-504d7decbdef55d58e62217a0a54cbee2a0944cc.tar.bz2 rneovim-504d7decbdef55d58e62217a0a54cbee2a0944cc.zip | |
vim-patch:8c1b8cb2e0b5 (#18966)
Update runtime files
https://github.com/vim/vim/commit/8c1b8cb2e0b52d0853f85c2096a2f22dbc57a788
Diffstat (limited to 'runtime/ftplugin/tap.vim')
| -rw-r--r-- | runtime/ftplugin/tap.vim | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/runtime/ftplugin/tap.vim b/runtime/ftplugin/tap.vim new file mode 100644 index 0000000000..c165c0ce68 --- /dev/null +++ b/runtime/ftplugin/tap.vim @@ -0,0 +1,27 @@ +" Vim filetype plugin file +" Language: Verbose TAP Output +" Maintainer: vim-perl <vim-perl@googlegroups.com> +" Homepage: https://github.com/vim-perl/vim-perl +" Bugs/requests: https://github.com/vim-perl/vim-perl/issues +" License: Vim License (see :help license) +" Last Change: 2021 Oct 22 + +" Only do this when not done yet for this buffer +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal foldtext=TAPTestLine_foldtext() +function! TAPTestLine_foldtext() + let line = getline(v:foldstart) + let sub = substitute(line, '/\*\|\*/\|{{{\d\=', '', 'g') + return sub +endfunction + +setlocal foldminlines=5 +setlocal foldcolumn=2 +setlocal foldenable +setlocal foldmethod=syntax + +let b:undo_ftplugin = 'setlocal foldtext< foldminlines< foldcolumn< foldenable< foldmethod<' |