annotate runtime/ftplugin/tap.vim @ 30643:dfb02f9dcbe8 v9.0.0656

patch 9.0.0656: cannot specify another character to use instead of '@' Commit: https://github.com/vim/vim/commit/4ba5f1dab656103e8f4a4505452d1816b9e83c1e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 4 14:36:29 2022 +0100 patch 9.0.0656: cannot specify another character to use instead of '@' Problem: Cannot specify another character to use instead of '@' at the end of the window. Solution: Add "lastline" to 'fillchars'. (Martin Tournoij, closes #11264, closes #10963)
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Oct 2022 15:45:03 +0200
parents d1fe80fb35e6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29150
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Verbose TAP Output
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: vim-perl <vim-perl@googlegroups.com>
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Homepage: https://github.com/vim-perl/vim-perl
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 " Bugs/requests: https://github.com/vim-perl/vim-perl/issues
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 " License: Vim License (see :help license)
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 " Last Change: 2021 Oct 22
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 " Only do this when not done yet for this buffer
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 if exists('b:did_ftplugin')
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 finish
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 endif
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 let b:did_ftplugin = 1
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 setlocal foldtext=TAPTestLine_foldtext()
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 function! TAPTestLine_foldtext()
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 let line = getline(v:foldstart)
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 let sub = substitute(line, '/\*\|\*/\|{{{\d\=', '', 'g')
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 return sub
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 endfunction
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 setlocal foldminlines=5
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 setlocal foldcolumn=2
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 setlocal foldenable
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 setlocal foldmethod=syntax
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26
d1fe80fb35e6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 let b:undo_ftplugin = 'setlocal foldtext< foldminlines< foldcolumn< foldenable< foldmethod<'