mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
356cd3cca76e7638da8e7bf4d7304c27ef93992b
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
Expand <Space> to:
You start with | You get
==============================
(|) | ( | )
Expand <CR> to:
You start with | You 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%