mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 04:34:29 +08:00
bc97837c71db518e87f82d4da8aa26f96555f8c1
Since Vim version 7.4.849 [1] we can move in insert mode without breaking the undo sequence by inserting <C-G>U before the movement key. Add s:joinUndo which returns "\<C-G>U" if available. Use s:joinUndo before doing any <Left> or <Right> movements in insert mode to keep a single undo point which can be repeated and undone with a single command. [1] https://github.com/vim/vim/releases/tag/v7.4.849
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%