[vim] Showmatch issue with curly brackets (#437)

47 views
Skip to first unread message

Rastislav Barlik

unread,
Oct 1, 2015, 10:55:12 AM10/1/15
to vim/vim

I've been writing some django templates which contains a lot of {{ }} structures. I have showmatch option set and it annoys me that when I'm typing the two consecutive closing curly bracket }} quickly than the second bracket is ignored. It's working fine with (()) <<>> or [[]] pairs, but with {{}} the second bracket is ignored when it's typed under matchtime interval.


Reply to this email directly or view it on GitHub.

Barlik

unread,
Apr 13, 2016, 5:02:52 PM4/13/16
to vim/vim

Closed #437.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Barlik

unread,
Apr 13, 2016, 5:05:39 PM4/13/16
to vim/vim

Sorry, it was probably caused by some of the plugins I had installed before. I cannot replicate the behaviour now.


You are receiving this because you are subscribed to this thread.

Reply to this email directly or view it on GitHub

Barlik

unread,
Aug 16, 2016, 2:42:21 PM8/16/16
to vim/vim

Reopened #437.


You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, .

Barlik

unread,
Aug 16, 2016, 2:45:30 PM8/16/16
to vim/vim

Reopeningas I've encountered it again.
It's probably a bug in HTML filetype indent.

Steps to reproduce:
..vimrc:

filetype indent on
set showmatch
set showcmd

a.html:

<head>

TYPE: `{{}}` quickly, the second `}` won't be typed in.


You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or mute the thread.

Barlik

unread,
Aug 16, 2016, 3:33:23 PM8/16/16
to vim/vim

It looks like HTML indent plugin is switching to normal mode when first } is typed and the second } is not interpreted in insert but in normal mode:

In indent/html.vim (line 964), the switch to normal mode (removing it fixes the issue)

  if curtext !~ '^\s*<'
->    normal! ^
    let stack = synstack(v:lnum, col('.'))  " assumes there are no tabs

Stéphane Lavergne

unread,
Jan 31, 2017, 8:45:30 AM1/31/17
to vim/vim, Subscribed

Thank you! This has been bugging me so much these past few months...

FYI it's now on line 959.

Unfortunately, for me commenting out that line (which is line 901 in my older version) does not solve the issue, so I'll just have to live without showmatch.

dkearns

unread,
Mar 25, 2026, 12:14:23 AM (yesterday) Mar 25
to vim/vim, Subscribed
dkearns left a comment (vim/vim#437)

I can't reproduce this using the instructions given here or in #4867.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/437/4123106805@github.com>

Christian Brabandt

unread,
Mar 25, 2026, 2:42:46 AM (yesterday) Mar 25
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#437)

let's close it then. thanks.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/437/4124174487@github.com>

Christian Brabandt

unread,
Mar 25, 2026, 2:42:47 AM (yesterday) Mar 25
to vim/vim, Subscribed

Closed #437 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/437/issue_event/23878639695@github.com>

Reply all
Reply to author
Forward
0 new messages