Closed sddhrthrt closed 11 years ago
I'm sorry it took me this long to reply. What's the output of the following commands:
:verb imap <Space>
:verb imap <CR>
i
On Tue, Dec 18, 2012 at 9:39 PM, Israel Chauca Fuentes < notifications@github.com> wrote:
I'm sorry it took me this long to reply. What's the output of the following commands:
:verb imap
:verb imap — Reply to this email directly or view it on GitHubhttps://github.com/Raimondi/delimitMate/issues/111#issuecomment-11492957.
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
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.
no problems :)
On Sat, Feb 9, 2013 at 10:23 AM, Israel Chauca Fuentes < notifications@github.com> wrote:
I have updated the mapping, glad you saw that.
— Reply to this email directly or view it on GitHubhttps://github.com/Raimondi/delimitMate/issues/111#issuecomment-13326465..
With neocomplete I now need to use this:
imap <expr> <CR> pumvisible()
\ ? "\<C-y>\<CR>"
\ : '<Plug>delimitMateCR'
(I also learnt that inoremap
won't work here.)
I wanted to add to this issue for others that may get here like I did. delimitMate_expand_cr
wasn't working for me because vim-endwise
remapped <CR>
. The troubleshooting command :verb imap <CR>
made it very clear the endwise had last mapped the action.
@ktilcu https://github.com/tpope/vim-endwise/issues/133#issuecomment-1087777576
Adding this to your ~/.vimrc
should fix the issue.
if empty(maparg('<CR>', 'i'))
imap <CR> <Plug>delimitMateCR
endif
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
in my .vimrc.