diff --git a/README b/README index 9705319..6d49386 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -*delimitMate* Trying to keep those beasts at bay! v2.3.1 *delimitMate.txt* +*delimitMate* Trying to keep those beasts at bay! v2.4DEV *delimitMate.txt* @@ -149,8 +149,9 @@ e.g. typing at the "|": > When visual mode is active this script allows for the selection to be enclosed with delimiters. But, since brackets have special meaning in visual mode, a leader (the value of 'mapleader' by default) should precede the delimiter. -NOTE that this feature brakes the redo command and doesn't currently work on -blockwise visual mode, any suggestions to fix this will be very welcome. +NOTE that this feature brakes the redo command and doesn't currently work well +on blockwise visual mode when the selection has lines one character smaller +than the rest, any suggestions to fix this will be very welcome. e.g. (selection represented between square brackets): > @@ -304,7 +305,7 @@ Default: "\" ' `" ~ Use this option to tell delimitMate which characters should be considered as quotes. Read |delimitMateAutoClose| for details. e.g.: > - let b:delimitMate_quotes = "\" ' ` *" + let delimitMate_quotes = "\" ' ` *" au FileType html let b:delimitMate_quotes = "\" '" < ------------------------------------------------------------------------------ @@ -328,20 +329,20 @@ Default: 0 ~ This option turns on/off the expansion of . Read |delimitMateExpansion| for details. e.g.: > - let b:delimitMate_expand_cr = "\\\" - au FileType mail let b:delimitMate_expand_cr = "\" + let delimitMate_expand_cr = 1 + au FileType mail let b:delimitMate_expand_cr = 1 < ------------------------------------------------------------------------------ *'delimitMate_expand_space'* *'b:delimitMate_expand_space'* -Values: A key mapping. ~ -Default: "\" ~ +Values: 1 or 0 ~ +Default: 0 ~ This option turns on/off the expansion of . Read |delimitMateExpansion| for details. e.g.: > - let delimitMate_expand_space = "\\\" - au FileType tcl let b:delimitMate_expand_space = "\" + let delimitMate_expand_space = 1 + au FileType tcl let b:delimitMate_expand_space = 1 < ------------------------------------------------------------------------------ *'delimitMate_excluded_ft'* @@ -516,7 +517,7 @@ e.g.: You can use this to create your own mapping to jump over any delimiter. 6. TODO LIST *delimitMateTodo* - Automatic set-up by file type. -- Make visual wrapping work on blockwise visual mode. +- Make block-wise visual wrapping work on un-even regions. ============================================================================== 7. MAINTAINER *delimitMateMaintainer* @@ -541,19 +542,34 @@ from the following sources: From the comments on the previous blog post and from: http://gist.github.com/144619 - - Vim Scripts: - http://www.vim.org/scripts + - Karl Guertin + AutoClose: + http://www.vim.org/scripts/script.php?script_id=1849 -This script was inspired by the auto-completion of delimiters of TextMate. + - Thiago Alves + AutoClose: + http://www.vim.org/scripts/script.php?script_id=2009 + + - Edoardo Vacchi + ClosePairs: + http://www.vim.org/scripts/script.php?script_id=2373 + +This script was inspired by the auto-completion of delimiters on TextMate. ============================================================================== 9. HISTORY *delimitMateHistory* Version Date Release notes ~ |---------|------------|-----------------------------------------------------| - 2.3.1 2010-06-06 * Current release: - - Fix: an extra is inserted after + 2.4DEV 2010-06-06 * Current release: + - Unbalanced parens: see :help delimitMateBalance. + - Visual wrapping now works on block-wise visual + with some limitations. + +|---------|------------|-----------------------------------------------------| + 2.3.1 2010-06-06 * - Fix: an extra is inserted after expansion. + |---------|------------|-----------------------------------------------------| 2.3 2010-06-06 * - Syntax aware: Will turn off when editing comments or other regions, customizable. @@ -562,16 +578,19 @@ This script was inspired by the auto-completion of delimiters of TextMate. indentation adjustments anymore. - Fix: Arrow keys would insert A, B, C or D instead of moving the cursor when using Vim on a terminal. + |---------|------------|-----------------------------------------------------| 2.2 2010-05-16 * - Added command to switch the plug-in on and off. - Fix: some problems with , and . - Fix: A small problem when inserting a delimiter at the beginning of the line. + |---------|------------|-----------------------------------------------------| 2.1 2010-05-10 * - Most of the functions have been moved to an autoload script to avoid loading unnecessary ones. - Fixed a problem with the redo command. - Many small fixes. + |---------|------------|-----------------------------------------------------| 2.0 2010-04-01 * New features: - All features are redo/undo-wise safe. @@ -587,7 +606,6 @@ This script was inspired by the auto-completion of delimiters of TextMate. active if you have any of the expansion options set. - deletes the closing delimiter. - * Fixed bug: - s:vars were being used to store buffer options. @@ -646,4 +664,4 @@ _____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|____ ~ __|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_ ~ _____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|____ ~ -vim:tw=78:ts=8:ft=help:norl:formatoptions+=tcroqn:autoindent: +vim:tw=78:et:ts=2:sw=2:ft=help:norl:formatoptions+=tcroqn:autoindent: diff --git a/autoload/delimitMateTests.vim b/autoload/delimitMateTests.vim index b0fe388..f748714 100644 --- a/autoload/delimitMateTests.vim +++ b/autoload/delimitMateTests.vim @@ -3,7 +3,7 @@ function! delimitMateTests#Main() echoerr "delimitMateTests#Main(): If you really want to use me, you must set delimitMate_testing to any value." return elseif g:delimitMate_testing == "fork" - !gvim -N -u NONE -U NONE -c "set backspace=eol,start" -c "let delimitMate_testing = 1" -c "so autoload/delimitMate.vim" -c "so autoload/delimitMateTests.vim" -c "so plugin/delimitMate.vim" -c "call delimitMateTests\#Main()" + !gvim -N -u NONE -U NONE -c "set backspace=eol,start" -c "set background=light" -c "syntax on" -c "let delimitMate_testing = 1" -c "so autoload/delimitMate.vim" -c "so autoload/delimitMateTests.vim" -c "so plugin/delimitMate.vim" -c "call delimitMateTests\#Main()" return "" endif nmap :qall!