mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-08-18 21:58:03 +08:00
Update readme
This commit is contained in:
@@ -23,8 +23,52 @@ Plug 'Raimondi/delimitMate'
|
|||||||
|
|
||||||
### Expansion of space and CR
|
### Expansion of space and CR
|
||||||
|
|
||||||
|
| You start with | You get |
|
||||||
|
| -------------- | ------- |
|
||||||
|
| `(|)` | `( | )` |
|
||||||
|
|
||||||
|
after press `<Cr>` in `(|)`, you will get:
|
||||||
|
|
||||||
|
```
|
||||||
|
(
|
||||||
|
|
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
### Backspace
|
### 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
|
### Smart Quotes
|
||||||
|
|
||||||
|
```
|
||||||
|
What | Before | After
|
||||||
|
=======================================
|
||||||
|
" | Text | | Text "|"
|
||||||
|
" | "String| | "String"|
|
||||||
|
" | let i = "| | let i = "|"
|
||||||
|
'm | I| | I'm|
|
||||||
|
```
|
||||||
|
|
||||||
### BALANCING MATCHING PAIRS
|
### BALANCING MATCHING PAIRS
|
||||||
|
|
||||||
|
```
|
||||||
|
e.g. typing at the "|": >
|
||||||
|
|
||||||
|
What | Before | After
|
||||||
|
=======================================
|
||||||
|
( | function| | function(|)
|
||||||
|
( | |var | (|var
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user