diff --git a/README.md b/README.md index 083568a..d400eb0 100644 --- a/README.md +++ b/README.md @@ -244,6 +244,14 @@ Compatible with Vimwiki - [issue #19](https://github.com/jiangmiao/auto-pairs/is Reason: vimwiki uses `` on mapping `` that auto-pairs cannot expanding. Solution: add `let g:AutoPairsMapCR = 0` to .vimrc to disable `` mapping. +Compatible with viki - [issue #25](https://github.com/jiangmiao/auto-pairs/issues/25) + + Description: When works with viki `` will output viki#ExprMarkInexistentInElement('ParagraphVisible','') + Reason: viki uses `` on mapping `` that auto-pairs cannot expanding. + Solution A: add `let g:AutoPairsMapCR = 0` to .vimrc to disable `` mapping. + Solution B: add `autocmd filetype viki inoremap =viki#ExprMarkInexistentInElement('ParagraphVisible',"\n")=AutoPairsReturn()` to .vimrc + Remarks: Solution B need NOT add `let g:AutoPairsMapCR = 0` to .vimrc, if still cannot work for Solution B, then have to use Solution A to disable auto-pairs ``. + Breaks '.' - [issue #3](https://github.com/jiangmiao/auto-pairs/issues/3) Description: After entering insert mode and inputing `[hello` then leave insert diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 796b788..2d92bc5 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -282,7 +282,7 @@ function! AutoPairsReturn() let cmd = " \zz\cl" end - " If user has set equalprg, then avoid call = + " If equalprg has been set, then avoid call = " https://github.com/jiangmiao/auto-pairs/issues/24 if &equalprg != '' return "\O".cmd