Search code examples
vimcurly-bracesline-breaks

How to disable automatic line break when inserting two curly braces in vim?


Whenever I type two curly braces ({{), I get something like that:

{
|
}

| is used to describe the position of the cursor.

This behaviour is totally annoying, e.g. when using different template engines which reserve this syntax for variables.

How can I find out where that behaviour comes from? And how do I shut it off?

Thanks


Solution

  • To find out where it comes from:

    :verbose imap {{
    :verbose map {{
    

    Look for the mapping with 'i' (insert mode mapping) and see where it is defined

    If that's not it, it could be an abbreviation:

    :verbose abbrev