Fixed smart indent when pressing Enter inside {}

There do seem to be test cases for this, however, this functionality did not work for me in vim 7.3. I attached a fix.