mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 05:04:34 +08:00
Doc corrections.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
" ============================================================================
|
" ============================================================================
|
||||||
" File: autoload/delimitMate.vim
|
" File: autoload/delimitMate.vim
|
||||||
" Version: 2.2
|
" Version: 2.2
|
||||||
|
" Modified: 2010-01-01
|
||||||
" 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! v.2.2 *delimitMate.txt*
|
*delimitMate* Trying to keep those beasts at bay! v2.2 *delimitMate.txt*
|
||||||
|
|
||||||
========================================================================= ~
|
========================================================================= ~
|
||||||
==== ========= ========================== ===== ===================== ~
|
==== ========= ========================== ===== ===================== ~
|
||||||
@@ -438,12 +438,12 @@ represented by an "|": >
|
|||||||
5. FUNCTIONS *delimitMateFunctions*
|
5. FUNCTIONS *delimitMateFunctions*
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
delimitMate_WithinEmptyPair() *delimitMate_WithinEmptyPair*
|
delimitMate#WithinEmptyPair() *delimitMate_WithinEmptyPair*
|
||||||
|
|
||||||
Returns 1 if the cursor is inside an empty pair, 0 otherwise.
|
Returns 1 if the cursor is inside an empty pair, 0 otherwise.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
DelimitMate_ExpandReturn() *DelimitMate_ExpandReturn()*
|
delimitMate#ExpandReturn() *delimitMate#ExpandReturn()*
|
||||||
|
|
||||||
Returns the expansion for <CR>.
|
Returns the expansion for <CR>.
|
||||||
|
|
||||||
@@ -451,32 +451,32 @@ e.g.: This mapping could be used to select an item on a pop-up menu or expand
|
|||||||
<CR> inside an empty pair: >
|
<CR> inside an empty pair: >
|
||||||
|
|
||||||
inoremap <expr> <CR> pumvisible() ? "\<c-y>" :
|
inoremap <expr> <CR> pumvisible() ? "\<c-y>" :
|
||||||
\ DelimitMate_WithinEmptyPair ?
|
\ delimitMate#WithinEmptyPair() ?
|
||||||
\ DelimitMate_ExpandReturn() : "\<CR>"
|
\ delimitMate#ExpandReturn() : "\<CR>"
|
||||||
<
|
<
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
DelimitMate_ExpandSpace() *DelimitMate_ExpandSpace()*
|
delimitMate#ExpandSpace() *delimitMate#ExpandSpace()*
|
||||||
|
|
||||||
Returns the expansion for <Space>.
|
Returns the expansion for <Space>.
|
||||||
e.g.: >
|
e.g.: >
|
||||||
|
|
||||||
inoremap <expr> <Space> DelimitMate_WithinEmptyPair() ?
|
inoremap <expr> <Space> delimitMate#WithinEmptyPair() ?
|
||||||
\ DelimitMate_ExpandSpace() : "\<Space>"
|
\ delimitMate#ExpandSpace() : "\<Space>"
|
||||||
<
|
<
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
DelimitMate_ShouldJump() *DelimitMate_ShouldJump()*
|
delimitMate#ShouldJump() *delimitMate#ShouldJump()*
|
||||||
|
|
||||||
Returns 1 if there is a closing delimiter or a quote to the right of the
|
Returns 1 if there is a closing delimiter or a quote to the right of the
|
||||||
cursor, 0 otherwise.
|
cursor, 0 otherwise.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
DelimitMate_JumpAny() *DelimitMate_JumpAny()*
|
delimitMate#JumpAny() *delimitMate#JumpAny()*
|
||||||
|
|
||||||
This function returns a mapping that will make the cursor jump to the right.
|
This function returns a mapping that will make the cursor jump to the right.
|
||||||
e.g.: You can use this to create your own mapping to jump over any delimiter.
|
e.g.: You can use this to create your own mapping to jump over any delimiter.
|
||||||
>
|
>
|
||||||
inoremap <expr> <C-Tab> DelimitMate_ShouldJump() ?
|
inoremap <expr> <C-Tab> delimitMate#ShouldJump() ?
|
||||||
\ DelimitMate_JumpAny() : "\<C-Tab>"
|
\ delimitMate#JumpAny() : "\<C-Tab>"
|
||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@@ -519,7 +519,8 @@ This script was inspired by the auto-completion of delimiters of TextMate.
|
|||||||
|
|
||||||
Version Date Release notes ~
|
Version Date Release notes ~
|
||||||
|---------|------------|-----------------------------------------------------|
|
|---------|------------|-----------------------------------------------------|
|
||||||
2.2 2010-05-20 * - Added command to switch the plug-in on and off.
|
2.2 2010-05-20 * Current release:
|
||||||
|
- Added command to switch the plug-in on and off.
|
||||||
- Fix: some problems with <Left>, <Right> and <CR>.
|
- Fix: some problems with <Left>, <Right> and <CR>.
|
||||||
- Fix: A small problem when inserting a delimiter at
|
- Fix: A small problem when inserting a delimiter at
|
||||||
the beginning of the line.
|
the beginning of the line.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
" ============================================================================
|
" ============================================================================
|
||||||
" File: plugin/delimitMate.vim
|
" File: plugin/delimitMate.vim
|
||||||
" Version: 2.2
|
" Version: 2.2
|
||||||
|
" Modified: 2010-01-01
|
||||||
" 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".
|
||||||
|
|||||||
Reference in New Issue
Block a user