mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
e91b50c2e6eb91582e91cac5313914fd47bd457b
delimitMate
Vim plugin for automatic closing of quotes, parenthesis, brackets, etc.
Installation
Plug 'Raimondi/delimitMate'
Features
Automatic closing & exiting
| Type | You get |
|---|---|
( |
`( |
() |
`() |
(<S-Tab> |
`() |
{("<C-G>g |
`{("")} |
Expansion of space and CR
| You start with | You get |
|---|---|
| `( | )` |
after press <Cr> in (|), you will get:
(
|
)
Backspace
What | Before | After
==============================================
<BS> | call expand(|) | call expand|
--------|-------------------|-----------------
<BS> | call expand( | ) | call expand(|)
--------|-------------------|-----------------
<BS> | call expand( | call expand(|)
| | |
| ) |
--------|-------------------|-----------------
<S-BS> | call expand(|) | call expand(|
Smart Quotes
What | Before | After
=======================================
" | Text | | Text "|"
" | "String| | "String"|
" | let i = "| | let i = "|"
'm | I| | I'm|
BALANCING MATCHING PAIRS
e.g. typing at the "|": >
What | Before | After
=======================================
( | function| | function(|)
( | |var | (|var
Description
Languages
Vim Script
94.1%
Makefile
5.9%