Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

Undesired EOL marker #195

Closed eloytoro closed 9 years ago

eloytoro commented 9 years ago

The EOL marker option could be so much better if it only added the marker when the delimiters expand with the delimitMate_expand_cr option

//Undesired behaviour
action
    .next(function() { }); // <- shouldnt apply the marker
    .next(function() {
        /*...*/
    });

// Desired behaviour
action
    .next(function() { })
    .next(function() {
        /*...*/
    });
Raimondi commented 9 years ago

This sounds good, I'll add it.

eloytoro commented 9 years ago

Thanks for adding this feature. But it still doesn't work as intended

//Undesired behaviour
action
    .next(function() { })
    .next(function() {
        /*...*/
    };) // <- The EOL marker should be inserted after the outer parentheses

Also if the EOL marker exists at the end of the line it shouldnt be inserted again.

Raimondi commented 9 years ago

Sorry for that, let me know if there is something still missing from this commit.