From 74f56009f428204081fa2df2d72fe17144e34e59 Mon Sep 17 00:00:00 2001 From: Matt Mendell Date: Thu, 10 Mar 2016 06:51:21 -0800 Subject: [PATCH 1/2] Fix numbering in the overview section --- doc/AutoClose.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/AutoClose.txt b/doc/AutoClose.txt index eae8f94..ddab52c 100644 --- a/doc/AutoClose.txt +++ b/doc/AutoClose.txt @@ -31,9 +31,10 @@ will not insert the closing character for you. 2. Features |ac_features| 3. Configuring |ac_config| 3.1 Defining characters to auto close |ac_charstoclose| - 3.2 Defining protected regions |ac_protectedregions| - 3.3 Turning AutoClose on and off |ac_turnon| - 3.4 Selection wrap prefix |ac_wrapPrefix| + 3.2 Configuration helper functions + 3.3 Defining protected regions |ac_protectedregions| + 3.4 Turning AutoClose on and off |ac_turnon| + 3.5 Selection wrap prefix |ac_wrapPrefix| 4. Under the hood |ac_details| 4.1 Mappings |ac_mappings| From 02ef3cc902a60906d86b01cf8943843774f66664 Mon Sep 17 00:00:00 2001 From: Matt Mendell Date: Thu, 10 Mar 2016 06:46:34 -0800 Subject: [PATCH 2/2] Document the AutoCloseExpandEnterOn setting --- doc/AutoClose.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/AutoClose.txt b/doc/AutoClose.txt index ddab52c..f3e33ed 100644 --- a/doc/AutoClose.txt +++ b/doc/AutoClose.txt @@ -35,6 +35,7 @@ will not insert the closing character for you. 3.3 Defining protected regions |ac_protectedregions| 3.4 Turning AutoClose on and off |ac_turnon| 3.5 Selection wrap prefix |ac_wrapPrefix| + 3.6 Expanding enter |ac_expandEnterOn| 4. Under the hood |ac_details| 4.1 Mappings |ac_mappings| @@ -274,6 +275,17 @@ visual mode. Examples: " hide the sacrilege from the gods of vim: autocmd FileType vim let b:AutoCloseSelectionWrapPrefix="a" +< + *ac_expandEnterOn* *AutoCloseExpandEnterOn* + +3.6 Expanding enter~ + + Set to a list of open characters to expand enter on. This means that +when the user types enter after an opening character, the cursor will move +to the next line and the closing character will be put on a newline below +the cursor. Example: +> + let g:AutoCloseExpandEnterOn="([{" < ============================================================================== *ac_details*