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

jump disrupts indentation when nested #222

Closed perrin4869 closed 8 years ago

perrin4869 commented 9 years ago

For some reason when jumping out of a block, the indentation gets broken. In a random javascript file (e.g., vim foo.js):

function() {
    function() {
        |
    }
};

If I try to jump at that point (in my case with <C-d>, as per my vimrc: silent! imap <unique> <C-d> <Plug>delimitMateS-Tab) I get:

function() {
    function() {

            |}
};

I tried this on a vanilla vim installation, on both a javascript and a c file. My config is:

" Delimitmate options
let delimitMate_expand_cr = 1
let delimitMate_expand_space = 1
let delimitMate_jump_expansion = 1

I'd appreciate it if you looked into it! Thanks!