From 4399fa327f9cf998d323eaebecc57032aeaeb0c2 Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Wed, 23 Jun 2010 12:53:58 -0500 Subject: [PATCH] Doc corrections. --- doc/delimitMate.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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()\" < ------------------------------------------------------------------------------