Closed siddhion closed 9 years ago
I uninstalled all of my VIM plugins besides Delimitmate and Vundle. I ran the same tests from above and still the same results. Are these results normal DelimitMate behaviours? If so, how can I control how Delimitmate handles the indentation of specific characters and indentation of the cursor after pressing Enter?
I can't reproduce this. I have added basic_vimrc to the repo so you can use vim -N -u basic_vimrc foo.js
and try to reproduce it there. Let me know if you manage to do it.
Simple Array
When I try to create Javascript arrays no indentation happens after pressing enter. Here is what happens:
Step 1 : Create Array
Step 2 : Press Enter
As you can see the cursor position is at the 1st position in the line when it should be at the 3rd.
Array within an Array
Also if I create another array with in that array this happens:
Step 1 : Create Internal Array
Step 2 : Press Enter
Array within an Object
And if I decide to add an array to an object this is what happens:
Step 1 : Create Object
Step 2 : Press Enter
Step 3 : Create Array
Step 4 : Press Enter
As you can see in Step 4, the closing bracket gets indented two positions too far when it should be at the same indentation as the opening bracket.
Any ideas how to fix this array indentation issue?