kchmck/vim-coffee-script — pull request #98 by AndrewRadev (2012-06-15 14:02:05+00:00)
Title: On pressing backspace+Enter, keep cursor indent

When I want to "exit" a block of code while writing it, I press ``. For example, I'm writing this:

``` coffee
if foo
bar
# cursor
```

When I press backspace, I'll get something like this:

``` coffee
if foo
bar
# cursor
```

But then, I want to leave some space after the block, so I hit ``. The result is that the indent of the new line is set to the one of the last non-blank line:

``` coffee
if foo
bar

# cursor
```

While this seems to be a minor issue, it trips me up all the time. I suppose I should get used to leaving the space *first* with an ``, but I can't seem to do so :). In python, the behaviour is exactly as I want it to be, so I took a cue from that indent file and I tweaked this one to work like that.

I understand there may be some specific reason to have it this way. If so, I have no complaints to rejecting this PR outright.