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

delimitMate_expand_cr not working #211

Closed jrean closed 9 years ago

jrean commented 9 years ago

Hi,

Here is the interesting part of the DelimitMateTest outputs:

* Mappings:

                                                               i  )            @<Plug>delimitMate)
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  }            @<Plug>delimitMate}
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  ]            @<Plug>delimitMate]
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  >            @<Plug>delimitMate>
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  (            @<Plug>delimitMate(
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  {            @<Plug>delimitMate{
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  [            @<Plug>delimitMate[
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  <            @<Plug>delimitMate<
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  "            @<Plug>delimitMate"
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  '            @<Plug>delimitMate'
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  `            @<Plug>delimitMate`
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  <BS>         @<Plug>delimitMateBS
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/supertab/plugin/supertab.vim
i  <S-BS>       @<Plug>delimitMateS-BS
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-Tab>       <Plug>SuperTabBackward
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/supertab/plugin/supertab.vim
i  <C-G>g       @<Plug>delimitMateJumpMany
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/delimitMate/plugin/delimitMate.vim
i  <CR>        * <C-R>=<SNR>16_SelectCompletion(1)<CR>
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/supertab/plugin/supertab.vim
i  <CR>        * <C-R>=<SNR>16_SelectCompletion(1)<CR>
    Last set from /Volumes/data/dotfiles/vim/vim/bundle/supertab/plugin/supertab.vim

It seems that SuperTab override DelimitMate mapping...

To be precise this variable setting is causing the problem:

" <cr> will cancel completion mode preserving the current text.
let g:SuperTabCrMapping = 1

What should I do (if I want to keep let g:SuperTabCrMapping = 1 and DelimitMate)?

Thank you for the hard work.

Raimondi commented 9 years ago

That's an issue with supertab and I'm not familiar with it.

jrean commented 9 years ago

Thank you!