Closed siddhion closed 10 years ago
See if :help delimitMateExpansion
helps.
Ahh yes I found what I was looking for there. I just had to add
let delimitMate_expand_cr = 1
let delimitMate_expand_space = 1
to my .vimrc
. I'm very suprised it is not set to 1 by default since it provides the expected behavior.
Thanks a bunch :)
thanks for posting the answer! Came here looking for the same thing :)
In SCSS after I hit the
{
key delimitMate will automatically apply the}
next to it as expected. When I press Enter, my cursor goes down to the first character position on the next line along with the}
therefore ignoring VIM's auto indent feature.With delimitMate turned off, after I press
{
and press Enter, my cursor goes down to the next line and is auto indented. So I know my VIM's auto indentation feature works.What I want to happen after I press
{
and Enter is for VIM and delimitMate to send my cursor to the next line auto indented with the}
on the line below. This is a major time saving behavior. It seems like delimitMate is disrupting VIM from auto indenting. Same thing happens with Javascript.Any idea on how to solve this?
my
.vimrc