mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-01-15 07:36:56 +08:00
4024181af23eec8a110c6c782bba25fbc8bfd116
When indentation is controlled by 'smartindent', the expand_cr behavior
doesn't end up producing the same results that you would get without
delimitMate. The following behavior results instead:
Before: {|}
After: {
|
}
The expected behavior is to produce the following:
Before: {|}
After: {
|
}
To that end, detect when indentation is controlled by 'smartindent' and
adjust the indentation of the close line to match.
This plug-in provides automatic closing of quotes, parenthesis, brackets, etc., besides some other related features that should make your time in insert mode a little bit easier, like syntax awareness (will not insert the closing delimiter in comments and other configurable regions), and expansions (off by default), and some more.
Most of the features can be modified or disabled permanently, using global variables, or on a FileType basis, using :autocmd.
Description
Languages
Vim Script
94.1%
Makefile
5.9%