tmsvg / pear-tree

A Vim auto-pair plugin that supports multi-character pairs, intelligent matching, and more
MIT License
392 stars 12 forks source link

Allow <Plug>(PearTreeExpand) to work even if there is text between pairs #50

Open davidsierradz opened 4 years ago

davidsierradz commented 4 years ago

Hi! awesome plugin:

Imagine editing some markdown buffer, and:

```sh|```

If I press (PearTreeExpand) I would like to get:

```sh
|

Instead I get:

``````markdown
```sh
|```

Maybe put this behind some rule option (to only apply to ```).

Thanks!