From 3aa8a4d3a8dbd6ec93dcb432cd14029aa373c1b7 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 26 Nov 2017 22:45:02 +0800 Subject: [PATCH 1/4] Update readme --- README.md | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fb7b494..b282788 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,23 @@ -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. +# delimitMate -Most of the features can be modified or disabled permanently, using global variables, or on a FileType basis, using -:autocmd. +> Vim plugin for automatic closing of quotes, parenthesis, brackets, etc. + +## Installation + +- [plug.vim](https://github.com/junegunn/vim-plug) + +```vim +Plug 'Raimondi/delimitMate' +``` + +## Features + +### Automatic closing & exiting + +### Expansion of space and CR + +### Backspace + +### Smart Quotes + +### BALANCING MATCHING PAIRS From 54960895ce91232f46839908b9db8829c83523fa Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 26 Nov 2017 22:55:47 +0800 Subject: [PATCH 2/4] Update automatic closing & exiting section --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index b282788..e348393 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,13 @@ Plug 'Raimondi/delimitMate' ### Automatic closing & exiting +| Type | You get | +| ----------- | --------- | +| `(` | `(|)` | +| `()` | `()|` | +| `(` | `()|` | +| `{("g` | `{("")}|` | + ### Expansion of space and CR ### Backspace From e91b50c2e6eb91582e91cac5313914fd47bd457b Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 26 Nov 2017 23:04:41 +0800 Subject: [PATCH 3/4] Update readme --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/README.md b/README.md index e348393..a1dd804 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,52 @@ Plug 'Raimondi/delimitMate' ### Expansion of space and CR +| You start with | You get | +| -------------- | ------- | +| `(|)` | `( | )` | + +after press `` in `(|)`, you will get: + +``` +( + | +) +``` + ### Backspace +``` + What | Before | After +============================================== + | call expand(|) | call expand| +--------|-------------------|----------------- + | call expand( | ) | call expand(|) +--------|-------------------|----------------- + | call expand( | call expand(|) + | | | + | ) | +--------|-------------------|----------------- + | 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 +``` From b6b57ccb0572397f12b372404cd1ce893bde6806 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 26 Nov 2017 23:08:28 +0800 Subject: [PATCH 4/4] remove table --- README.md | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index a1dd804..7979af1 100644 --- a/README.md +++ b/README.md @@ -14,25 +14,36 @@ Plug 'Raimondi/delimitMate' ### Automatic closing & exiting -| Type | You get | -| ----------- | --------- | -| `(` | `(|)` | -| `()` | `()|` | -| `(` | `()|` | -| `{("g` | `{("")}|` | +``` + Type | You get +======================= + ( | (|) +-----------|----------- + () | ()| +-----------|----------- +( | ()| +-----------|----------- +{("g | {("")}| +``` ### Expansion of space and CR -| You start with | You get | -| -------------- | ------- | -| `(|)` | `( | )` | +Expand `` to: + +``` +You start with | You get +============================== + (|) | ( | ) +``` -after press `` in `(|)`, you will get: +Expand `` to: ``` -( - | -) +You start with | You get +============================== + (|) | ( + | | + | ) ``` ### Backspace