mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 05:04:34 +08:00
Release 2.4.1.
This commit is contained in:
103
README
103
README
@@ -1,4 +1,4 @@
|
|||||||
*delimitMate* Trying to keep those beasts at bay! v2.4 *delimitMate.txt*
|
*delimitMate* Trying to keep those beasts at bay! v2.4.1 *delimitMate.txt*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -26,8 +26,9 @@
|
|||||||
2.3 Backspace__________________________|delimitMateBackspace|
|
2.3 Backspace__________________________|delimitMateBackspace|
|
||||||
2.4 Visual wrapping____________________|delimitMateVisualWrapping|
|
2.4 Visual wrapping____________________|delimitMateVisualWrapping|
|
||||||
2.5 Smart Quotes_______________________|delimitMateSmartQuotes|
|
2.5 Smart Quotes_______________________|delimitMateSmartQuotes|
|
||||||
2.6 FileType based configuration_______|delimitMateFileType|
|
2.6 Balancing matching pairs___________|delimitMateBalance|
|
||||||
2.7 Syntax awareness___________________|delimitMateSyntax|
|
2.7 FileType based configuration_______|delimitMateFileType|
|
||||||
|
2.8 Syntax awareness___________________|delimitMateSyntax|
|
||||||
3. Customization___________________________|delimitMateOptions|
|
3. Customization___________________________|delimitMateOptions|
|
||||||
3.1 Options summary____________________|delimitMateOptionSummary|
|
3.1 Options summary____________________|delimitMateOptionSummary|
|
||||||
3.2 Options details____________________|delimitMateOptionDetails|
|
3.2 Options details____________________|delimitMateOptionDetails|
|
||||||
@@ -182,7 +183,22 @@ e.g. typing at the "|": >
|
|||||||
' | I| | I'|
|
' | I| | I'|
|
||||||
<
|
<
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
2.6 FILE TYPE BASED CONFIGURATION *delimitMateFileType*
|
2.6 BALANCING MATCHING PAIRS *delimitMateBalance*
|
||||||
|
|
||||||
|
When inserting an opening paren and |'delimitMate_balance_matchpairs'| is
|
||||||
|
enabled, delimitMate will try to balance the closing pairs in the current
|
||||||
|
line.
|
||||||
|
|
||||||
|
e.g. typing at the "|": >
|
||||||
|
|
||||||
|
What | Before | After
|
||||||
|
=======================================
|
||||||
|
( | |) | (|)
|
||||||
|
( | | | (|)
|
||||||
|
( | (|) | ((|))
|
||||||
|
<
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
2.7 FILE TYPE BASED CONFIGURATION *delimitMateFileType*
|
||||||
|
|
||||||
delimitMate options can be set globally for all buffers using global
|
delimitMate options can be set globally for all buffers using global
|
||||||
("regular") variables in your |vimrc| file. But |:autocmd| can be used to set
|
("regular") variables in your |vimrc| file. But |:autocmd| can be used to set
|
||||||
@@ -202,7 +218,7 @@ NOTE that you should use buffer variables (|b:var|) only to set options with
|
|||||||
|:autocmd|, for global options use regular variables (|g:var|) in your vimrc.
|
|:autocmd|, for global options use regular variables (|g:var|) in your vimrc.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
2.7 SYNTAX AWARENESS *delimitMateSyntax*
|
2.8 SYNTAX AWARENESS *delimitMateSyntax*
|
||||||
|
|
||||||
The features of this plug-in might not be always helpful, comments and strings
|
The features of this plug-in might not be always helpful, comments and strings
|
||||||
usualy don't need auto-completion. delimitMate monitors which region is being
|
usualy don't need auto-completion. delimitMate monitors which region is being
|
||||||
@@ -228,39 +244,41 @@ The behaviour of this script can be customized setting the following options
|
|||||||
in your vimrc file. You can use local options to set the configuration for
|
in your vimrc file. You can use local options to set the configuration for
|
||||||
specific file types, see |delimitMateOptionDetails| for examples.
|
specific file types, see |delimitMateOptionDetails| for examples.
|
||||||
|
|
||||||
|'loaded_delimitMate'| Turns off the script.
|
|'loaded_delimitMate'| Turns off the script.
|
||||||
|
|
||||||
|'delimitMate_autoclose'| Tells delimitMate whether to automagically
|
|'delimitMate_autoclose'| Tells delimitMate whether to automagically
|
||||||
insert the closing delimiter.
|
insert the closing delimiter.
|
||||||
|
|
||||||
|'delimitMate_matchpairs'| Tells delimitMate which characters are
|
|'delimitMate_matchpairs'| Tells delimitMate which characters are
|
||||||
matching pairs.
|
matching pairs.
|
||||||
|
|
||||||
|'delimitMate_quotes'| Tells delimitMate which quotes should be
|
|'delimitMate_quotes'| Tells delimitMate which quotes should be
|
||||||
used.
|
used.
|
||||||
|
|
||||||
|'delimitMate_nesting_quotes'| Tells delimitMate which quotes should be
|
|'delimitMate_nesting_quotes'| Tells delimitMate which quotes should be
|
||||||
allowed to be nested.
|
allowed to be nested.
|
||||||
|
|
||||||
|
|'delimitMate_visual_leader'| Sets the leader to be used in visual mode.
|
||||||
|
|
||||||
|'delimitMate_visual_leader'| Sets the leader to be used in visual mode.
|
|'delimitMate_expand_cr'| Turns on/off the expansion of <CR>.
|
||||||
|
|
||||||
|'delimitMate_expand_cr'| Turns on/off the expansion of <CR>.
|
|'delimitMate_expand_space'| Turns on/off the expansion of <Space>.
|
||||||
|
|
||||||
|'delimitMate_expand_space'| Turns on/off the expansion of <Space>.
|
|'delimitMate_smart_quotes'| Turns on/off the "smart quotes" feature.
|
||||||
|
|
||||||
|'delimitMate_excluded_ft'| Turns off the script for the given file types.
|
|'delimitMate_balance_matchpairs'|Turns on/off the "balance matching pairs"
|
||||||
|
feature.
|
||||||
|
|
||||||
|'delimitMate_excluded_regions'|Turns off the script for the given regions or
|
|'delimitMate_excluded_regions'| Turns off the script for the given regions or
|
||||||
syntax group names.
|
syntax group names.
|
||||||
|
|
||||||
|'delimitMate_apostrophes'| Tells delimitMate how it should "fix"
|
|'delimitMate_excluded_ft'| Turns off the script for the given file types.
|
||||||
|
|
||||||
|
|'delimitMate_apostrophes'| Tells delimitMate how it should "fix"
|
||||||
balancing of single quotes when used as
|
balancing of single quotes when used as
|
||||||
apostrophes. NOTE: Not needed any more, kept
|
apostrophes. NOTE: Not needed any more, kept
|
||||||
for compatibility with older versions.
|
for compatibility with older versions.
|
||||||
|
|
||||||
|'delimitMate_smart_quotes'| Turns on/off the "smart quotes" feature.
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
3.2 OPTIONS DETAILS *delimitMateOptionDetails*
|
3.2 OPTIONS DETAILS *delimitMateOptionDetails*
|
||||||
|
|
||||||
@@ -326,8 +344,8 @@ Default: [] ~
|
|||||||
Quotes listed here will not be able to jump out of the empty pair, thus
|
Quotes listed here will not be able to jump out of the empty pair, thus
|
||||||
allowing the autoclosed quotes to be nested.
|
allowing the autoclosed quotes to be nested.
|
||||||
e.g.: >
|
e.g.: >
|
||||||
let delimitMate_quotes = ['"','`']
|
let delimitMate_nesting_quotes = ['"','`']
|
||||||
au FileType python let b:delimitMate_quotes = ['"']
|
au FileType python let b:delimitMate_nesting_quotes = ['"']
|
||||||
<
|
<
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*'delimitMate_visual_leader'*
|
*'delimitMate_visual_leader'*
|
||||||
@@ -366,14 +384,28 @@ e.g.: >
|
|||||||
au FileType tcl let b:delimitMate_expand_space = 1
|
au FileType tcl let b:delimitMate_expand_space = 1
|
||||||
<
|
<
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*'delimitMate_excluded_ft'*
|
*'delimitMate_smart_quotes'*
|
||||||
Values: A string of file type names separated by single commas. ~
|
*'b:delimitMate_smart_quotes'*
|
||||||
Default: Empty. ~
|
Values: 1 or 0 ~
|
||||||
|
Default: 1 ~
|
||||||
|
|
||||||
This options turns delimitMate off for the listed file types, use this option
|
This option turns on/off the smart quotes feature. Read
|
||||||
only if you don't want any of the features it provides on those file types.
|
|delimitMateSmartQuotes| for details.
|
||||||
e.g.: >
|
e.g.: >
|
||||||
let delimitMate_excluded_ft = "mail,txt"
|
let delimitMate_smart_quotes = 0
|
||||||
|
au FileType tcl let b:delimitMate_smart_quotes = 0
|
||||||
|
<
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
*'delimitMate_balance_matchpairs'*
|
||||||
|
*'b:delimitMate_balance_matchpairs'*
|
||||||
|
Values: 1 or 0 ~
|
||||||
|
Default: 0 ~
|
||||||
|
|
||||||
|
This option turns on/off the balancing of matching pairs. Read
|
||||||
|
|delimitMateBalance| for details.
|
||||||
|
e.g.: >
|
||||||
|
let delimitMate_balance_matchpairs = 1
|
||||||
|
au FileType tcl let b:delimitMate_balance_matchpairs = 1
|
||||||
<
|
<
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*'delimitMate_excluded_regions'*
|
*'delimitMate_excluded_regions'*
|
||||||
@@ -385,6 +417,16 @@ for more info about what is a region.
|
|||||||
e.g.: >
|
e.g.: >
|
||||||
let delimitMate_excluded_regions = "Comments,String"
|
let delimitMate_excluded_regions = "Comments,String"
|
||||||
<
|
<
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
*'delimitMate_excluded_ft'*
|
||||||
|
Values: A string of file type names separated by single commas. ~
|
||||||
|
Default: Empty. ~
|
||||||
|
|
||||||
|
This options turns delimitMate off for the listed file types, use this option
|
||||||
|
only if you don't want any of the features it provides on those file types.
|
||||||
|
e.g.: >
|
||||||
|
let delimitMate_excluded_ft = "mail,txt"
|
||||||
|
<
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*'delimitMate_apostrophes'*
|
*'delimitMate_apostrophes'*
|
||||||
Values: Strings separated by ":". ~
|
Values: Strings separated by ":". ~
|
||||||
@@ -589,8 +631,13 @@ This script was inspired by the auto-completion of delimiters on TextMate.
|
|||||||
|
|
||||||
Version Date Release notes ~
|
Version Date Release notes ~
|
||||||
|---------|------------|-----------------------------------------------------|
|
|---------|------------|-----------------------------------------------------|
|
||||||
2.4 2010-07-29 * Current release:
|
2.4.1 2010-07-31 * Current release:
|
||||||
- Unbalanced parens: see :help delimitMateBalance.
|
- Fix problem with <Home> and <End>.
|
||||||
|
- Add missing doc on |'delimitMate_smart_quotes'|,
|
||||||
|
|delimitMateBalance| and
|
||||||
|
|'delimitMate_balance_matchpairs'|.
|
||||||
|
|---------|------------|-----------------------------------------------------|
|
||||||
|
2.4 2010-07-29 * - Unbalanced parens: see :help delimitMateBalance.
|
||||||
- Visual wrapping now works on block-wise visual
|
- Visual wrapping now works on block-wise visual
|
||||||
with some limitations.
|
with some limitations.
|
||||||
- Arrow keys didn't work on terminal.
|
- Arrow keys didn't work on terminal.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" ============================================================================
|
" ============================================================================
|
||||||
" File: autoload/delimitMate.vim
|
" File: autoload/delimitMate.vim
|
||||||
" Version: 2.4
|
" Version: 2.4.1
|
||||||
" Modified: 2010-07-29
|
" Modified: 2010-07-31
|
||||||
" Description: This plugin provides auto-completion for quotes, parens, etc.
|
" Description: This plugin provides auto-completion for quotes, parens, etc.
|
||||||
" Maintainer: Israel Chauca F. <israelchauca@gmail.com>
|
" Maintainer: Israel Chauca F. <israelchauca@gmail.com>
|
||||||
" Manual: Read ":help delimitMate".
|
" Manual: Read ":help delimitMate".
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*delimitMate* Trying to keep those beasts at bay! v2.4 *delimitMate.txt*
|
*delimitMate* Trying to keep those beasts at bay! v2.4.1 *delimitMate.txt*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -631,7 +631,7 @@ This script was inspired by the auto-completion of delimiters on TextMate.
|
|||||||
|
|
||||||
Version Date Release notes ~
|
Version Date Release notes ~
|
||||||
|---------|------------|-----------------------------------------------------|
|
|---------|------------|-----------------------------------------------------|
|
||||||
2.4.1 2010-07-29 * Current release:
|
2.4.1 2010-07-31 * Current release:
|
||||||
- Fix problem with <Home> and <End>.
|
- Fix problem with <Home> and <End>.
|
||||||
- Add missing doc on |'delimitMate_smart_quotes'|,
|
- Add missing doc on |'delimitMate_smart_quotes'|,
|
||||||
|delimitMateBalance| and
|
|delimitMateBalance| and
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" ============================================================================
|
" ============================================================================
|
||||||
" File: plugin/delimitMate.vim
|
" File: plugin/delimitMate.vim
|
||||||
" Version: 2.4
|
" Version: 2.4.1
|
||||||
" Modified: 2010-07-29
|
" Modified: 2010-07-31
|
||||||
" Description: This plugin provides auto-completion for quotes, parens, etc.
|
" Description: This plugin provides auto-completion for quotes, parens, etc.
|
||||||
" Maintainer: Israel Chauca F. <israelchauca@gmail.com>
|
" Maintainer: Israel Chauca F. <israelchauca@gmail.com>
|
||||||
" Manual: Read ":help delimitMate".
|
" Manual: Read ":help delimitMate".
|
||||||
@@ -27,7 +27,7 @@ if v:version < 700
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let s:loaded_delimitMate = 1
|
let s:loaded_delimitMate = 1
|
||||||
let delimitMate_version = "2.4"
|
let delimitMate_version = "2.4.1"
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
" Functions: {{{
|
" Functions: {{{
|
||||||
|
|||||||
Reference in New Issue
Block a user