Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Inserting two curly braces causes automatic line break #48

Open
ami7ava opened this issue Dec 22, 2012 · 9 comments
Open

Inserting two curly braces causes automatic line break #48

ami7ava opened this issue Dec 22, 2012 · 9 comments

Comments

@ami7ava
Copy link

ami7ava commented Dec 22, 2012

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.

@yichuan1118
Copy link

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.

@cvincent
Copy link

+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.

@caifara
Copy link

caifara commented Jul 10, 2013

+1 really annoying while using handlebar templates

@borisguery
Copy link

👍 Would be really helpful, I get tired to always have to go up and start typing ^^

@olgen
Copy link

olgen commented Oct 3, 2013

This did it for me:

imap {{ {{}}<Esc>hi

@patrickmcelwee
Copy link

thanks @olgen for workaround

@wamoyo
Copy link

wamoyo commented Jun 18, 2014

+1

@xtagon
Copy link

xtagon commented Apr 29, 2015

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.

@earthday
Copy link

earthday commented May 8, 2015

Thanks @olgen, 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants