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.![]()
Closed #437.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub![]()
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![]()
Reopened #437.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, .![]()
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.![]()
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
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.
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.![]()
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.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()