diff --git a/doc/delimitMate.txt b/doc/delimitMate.txt index 56b0c28..1a4dd1d 100644 --- a/doc/delimitMate.txt +++ b/doc/delimitMate.txt @@ -127,7 +127,7 @@ deleting expansions will brake the redo command. If you type (shift + backspace) instead, only the closing delimiter will be deleted. NOTE that this will not usually work when using Vim from the -terminal. +terminal, see 'delimitMate#JumpAny()' below to see how to fix it. e.g. typing at the "|": > @@ -164,9 +164,10 @@ e.g. (selection represented between square brackets): > ------------------------------------------------------------------------------ 2.5 SMART QUOTES *delimitMateSmartQuotes* -Only one quote will be inserted following a quote, a "\" or an alphanumeric -character. This should cover closing quotes, escaped quotes and apostrophes. -Except for apostrophes, this feature can be disabled setting the option +Only one quote will be inserted following a quote, a "\" or, following or +preceding an alphanumeric character. This should cover closing quotes after a +string, opening quotes before a string, escaped quotes and apostrophes. Except +for apostrophes, this feature can be disabled setting the option |'delimitMate_smart_quotes'| to 0. e.g. typing at the "|": > @@ -235,6 +236,10 @@ specific file types, see |delimitMateOptionDetails| for examples. |'delimitMate_quotes'| Tells delimitMate which quotes should be used. +|'delimitMate_nesting_quotes'| Tells delimitMate which quotes should be + allowed to be nested. + + |'delimitMate_visual_leader'| Sets the leader to be used in visual mode. |'delimitMate_expand_cr'| Turns on/off the expansion of . @@ -309,6 +314,18 @@ e.g.: > let delimitMate_quotes = "\" ' ` *" au FileType html let b:delimitMate_quotes = "\" '" < +------------------------------------------------------------------------------ + *'delimitMate_nesting_quotes'* + *'b:delimitMate_nesting_quotes'* +Values: A list of quotes. ~ +Default: [] ~ + +Quotes listed here will not be able to jump out of the empty pair, thus +allowing the autoclosed quotes to be nested. +e.g.: > + let delimitMate_quotes = ['"','`'] + au FileType python let b:delimitMate_quotes = ['"'] +< ------------------------------------------------------------------------------ *'delimitMate_visual_leader'* *'b:delimitMate_visual_leader'* @@ -518,7 +535,7 @@ This function returns a mapping that will make the cursor jump to the right when delimitMate#ShouldJump() returns 1, returns the argument "key" otherwise. e.g.: You can use this to create your own mapping to jump over any delimiter. > - inoremap =delimitMate#JumpAny("\") + inoremap =delimitMate#JumpAny("\") < ============================================================================== @@ -573,6 +590,11 @@ This script was inspired by the auto-completion of delimiters on TextMate. - Unbalanced parens: see :help delimitMateBalance. - Visual wrapping now works on block-wise visual with some limitations. + - Fixed a problem with . + - Arrow key didn't work on terminal. + - Added option to allow nested quotes. + - Expand Smart Quotes to look for a string on the + right of the cursor. |---------|------------|-----------------------------------------------------| 2.3.1 2010-06-06 * - Fix: an extra is inserted after