vim Matchit's parentheses matching function breaks in tex files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vim (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
** lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
**apt-cache policy vim
vim:
Installed: 2:8.2.3995-
Candidate: 2:8.2.3995-
Version table:
*** 2:8.2.3995-
500 http://
500 http://
100 /var/lib/
2:
500 http://
**The functionality of the package 'Matchit' that is shipped with vim 8.2 is broken for .tex files.
**Minimal example:
The file test.tex contains the following text:
(hello)
**Expected behavior: when the cursor is placed on the '(' character, a keyboard press of the '%' button should take the cursor to the ')' character.
**Faulty behavior: instead, an error message pops up, saying:
Error detected while processing function matchit#
seSkip:
line 10:
E488: Trailing characters: . strpart(skip,2). "'"
Error detected while processing function matchit#
line 174:
E121: Undefined variable: r
line 176:
E121: Undefined variable: r
**Possible solution: replace the file /usr/share/
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: vim 2:8.2.3995-
ProcVersionSign
Uname: Linux 5.15.0-91-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Jan 3 11:53:45 2024
DistributionCha
# This is the distribution channel descriptor for the OEM CDs
# For more information see http://
canonical-
InstallationDate: Installed on 2020-03-16 (1388 days ago)
InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 20180608-09:38
SourcePackage: vim
UpgradeStatus: Upgraded to jammy on 2023-12-10 (23 days ago)
summary: |
- matchit vim matching parentheses tex files + vim Matchit's parentheses matching function breaks in tex files |