Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Expand_cr not working. #111

sddhrthrt opened this Issue · 6 comments

3 participants


I installed spf13-vim and then added delimitMate because no other comes nearly close to delimitMate.

But i cannot get the expand_cr working, which is annoying.

I have vim 7.3.429, and I have set

inoremap <Tab> <C-R>=delimitMate#JumpAny("\<C-Tab>")<CR>
let g:delimitMate_expand_cr=1
let g:delimitMate_expand_space=1

in my .vimrc.


I'm sorry it took me this long to reply. What's the output of the following commands:

:verb imap <Space>
:verb imap <CR>

That's why, <CR> is being mapped in your vimrc. Try replacing that mapping in your vimrc with the following:

imap <expr> <CR> pumvisible() ? neocomplcache#close_popup() : '<Plug>delimitMateCR'

Updated the mapping as noted by @slindberg

@Raimondi Raimondi closed this

To anyone that runs across this thread and tries the <expr> mapping solution, the plugin mapping currently begins with a lowercase 'd'. With the above, the mapping can't resolve and <Plug>DelimitMateCR gets inserted into your buffer. It should probably be:

imap <expr> <CR> pumvisible() ? neocomplcache#close_popup() : '<Plug>delimitMateCR'

I have updated the mapping, glad you saw that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.