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

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

 { | } 

| used to describe the position of the cursor.

This behavior is completely annoying, for example. when using different template engines that preserve this syntax for variables.

How can I find out where this comes from? And how to disable it?

thanks

+4
source share
2 answers

To find out where it came from:

 :verbose imap {{ :verbose map {{ 

Look at the mapping to 'i' (pasting insert mode) and see where it is defined

If this is not the case, this may be an abbreviation:

 :verbose abbrev 
+5
source

If you use the same plugin as me, AutoClose , you can enter <leader>a (for me ,a , it depends on your key <leader> ).

<leader>a enable or disable for auto-wedging.

+4
source

All Articles