Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 116 forks source link

Can I achieve auto insertion of three ` #263

Closed andreyorst closed 6 years ago

andreyorst commented 6 years ago

Hello, your plugin is really great, but one thing is bothering me. Previously I used vim auto pairs plugin, which contain a very useful feature, but it a bit buggy in neovim, so I've switched to your plugin and now I miss that feature.

The point is when I edit markdown files, which I write a lot, I use code blocks: image which is basically is pair of ``` strings.

How it worked in auto pairs:

Input:  `|
Output: `|`
Input:  ``|`
Output: ``| (exit from `` pair)
Input:  ```|
Output: ```|```

How it works in your plugin (by default):

Input:  `|
Output: `|`
Input:  ``|`
Output: ``| (exit)
Input:  ```|
Output: ``|`
Input:  ```|`
Output: ```| (exit)
Input:   ````|
Output: ````| (huh?)
Input:  `````|
Output: ````|`
Input:  `````|`
Output: `````| (exit)
Input:  ``````|
Output: ``````| (?)

So basically instead of pressing ` three times i need to press it 8 times to get same thing, and then go back 3 times. Can i have same behaviour with your plugin? I've checked helptags, but didn't find anything like that.

Raimondi commented 6 years ago

Have you tried :help 'delimitMate_nesting_quotes'?

andreyorst commented 6 years ago

Oh, thanks a lot, how did i missed that