diff --git a/doc/delimitMate.txt b/doc/delimitMate.txt index 6d49386..df6181d 100644 --- a/doc/delimitMate.txt +++ b/doc/delimitMate.txt @@ -472,9 +472,15 @@ Functions should be used enclosed between = and , otherwise they might not work as expected or at all. ------------------------------------------------------------------------------ -delimitMate#WithinEmptyPair() *delimitMate_WithinEmptyPair* +delimitMate#WithinEmptyPair() *delimitMate_WithinEmptyPair()* Returns 1 if the cursor is inside an empty pair, 0 otherwise. +e.g.: > + + inoremap delimitMate#WithinEmptyPair() ? + \ "\=delimitMate#ExpandReturn()\" : + \ "external_mapping" +< ------------------------------------------------------------------------------ delimitMate#ExpandReturn() *delimitMate#ExpandReturn()* @@ -485,7 +491,8 @@ Returns the expansion for if enabled and inside an empty pair, returns e.g.: This mapping could be used to select an item on a pop-up menu or expand inside an empty pair: > - inoremap pumvisible() ? "\" : + inoremap pumvisible() ? + \"\" : \ "\=delimitMate#ExpandReturn()\" < ------------------------------------------------------------------------------