vim-autoclose
vim-autoclose copied to clipboard
Inserting two curly braces causes automatic line break
There is a newline inserted if two curly braces ({{
) are typed and results the following
{
|
}
This helps while editing javascript files, but creates problem when editing a template file such as mustache or handlebarsjs.
Being able to enable/disable this feature for a set of filetypes could be great.
I do not have a newline inserted when two curly braces inserted. Is this a feature request? or just request an option? I would appreciate it if you could tell how to insert a new line for curly braces.
+1. This has been irking me for a while and couldn't figure out which plugin was causing it. Simply doing :iunmap {{
doesn't kill it either.
+1 really annoying while using handlebar templates
:+1: Would be really helpful, I get tired to always have to go up and start typing ^^
This did it for me:
imap {{ {{}}<Esc>hi
thanks @olgen for workaround
+1
This issue affects me also. Quite annoying. @olgen's workaround does not work for me, because when I type <p>{{item.title
and continue typing }}</p>
it ends up as <p>{{item.title}}}}</p>
-- not what autoclose is supposed to do. My workaround is to disable autoclose entirely for Handlebars buffers.
Thanks @olgen, :+1: