annotate runtime/ftplugin/tap.vim @ 30843:82e62fd4eae9 v9.0.0756

patch 9.0.0756: no autocmd event for changing text in a terminal window Commit: https://github.com/vim/vim/commit/4ccaedfcd7526983f4b6b3b06b0bfb54f333f1f3 Author: Shougo Matsushita <Shougo.Matsu@gmail.com> Date: Sat Oct 15 11:48:00 2022 +0100 patch 9.0.0756: no autocmd event for changing text in a terminal window Problem: No autocmd event for changing text in a terminal window. Solution: Add TextChangedT. (Shougo Matsushita, closes https://github.com/vim/vim/issues/11366)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Oct 2022 13:00:02 +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<'