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

{ before $ does not autoinsert closing } #193

Closed Konfekt closed 10 years ago

Konfekt commented 10 years ago

Let * denote the cursor position, and assume we are in insert mode.

*$

Hit {. Output:

*{$

Expected:

*{}$
Konfekt commented 10 years ago

Fixed by adding

autocmd FileType tex let b:delimitMate_smart_matchpairs = '^\%(\w\|\!\|£\|_\|["'']\s*\S\)'

to .vimrc.