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

Problem with defining buffer-local matchpairs for $ or ` #254

Closed lgalke closed 7 years ago

lgalke commented 7 years ago

Once again I wanted to give insert mode (automagic) bracket completion a try (coming from plain surround's ). But I immediately ran into the following issue.

Minimal Example: autocmd FileType pandoc,tex let b:delimitMate_matchpairs = "$:$"

yields delimitMate: invalid pairs: $:$

Is there a problem with the '$' character (I also tried backticks and escaping the $ sign, but it did not help either).

I hope I used the syntax for b:delimitMate_matchpairs correctly..?

Raimondi commented 7 years ago

The matchpairs setting is for pairs that have an open char different from the closing char. You need to use :help 'delimitMate_quotes' to get what you describe.