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

disable auto-completion for '<' #243

Closed jabbalaci closed 8 years ago

jabbalaci commented 8 years ago

How to disable auto-completion for <? If I want to write "less than" (ex. a < b), then I don't want the closing pair.

However, when editing HTML for instance, closing < is very useful. The ideal solution would be to allow the completion of < for certain filetypes.

jabbalaci commented 8 years ago

Sorry, it was caused by this line in my .vimrc: set matchpairs+=<:>. So it's not delimitMate's fault.

anhari commented 7 years ago

For anyone else who stumbles upon this, I tried removing set matchpairs+=<:> as well, but that did not work for me. In my case, I ended up reading :help 'delimitMate_matchpairs' and explicitly defined what I wanted to delimitMate to match: let delimitMate_matchpairs = "(:),[:],{:}"