mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 21:24:51 +08:00
Add explanation about delimitMate_jump_expansion. Close #137.
This commit is contained in:
@@ -384,11 +384,14 @@ Expand <CR> to: >
|
|||||||
<CR><CR><Up> | You get
|
<CR><CR><Up> | You get
|
||||||
============================
|
============================
|
||||||
(|) | (
|
(|) | (
|
||||||
| |
|
| |
|
||||||
| )
|
| )
|
||||||
<
|
<
|
||||||
|
|
||||||
NOTE that the expansion of <CR> will break the redo command.
|
When you have |'delimitMate_jump_expansion'| enabled, if there is an existing
|
||||||
|
closing paren/bracket/etc. on the next line, delimitMate will make the cursor
|
||||||
|
jump over any whitespace/<CR> and place it after the existing closing
|
||||||
|
delimiter instead of inserting a new one.
|
||||||
|
|
||||||
Since <Space> and <CR> are used everywhere, I have made the functions involved
|
Since <Space> and <CR> are used everywhere, I have made the functions involved
|
||||||
in expansions global, so they can be used to make custom mappings. Read
|
in expansions global, so they can be used to make custom mappings. Read
|
||||||
@@ -398,8 +401,7 @@ in expansions global, so they can be used to make custom mappings. Read
|
|||||||
3.3 BACKSPACE *delimitMateBackspace*
|
3.3 BACKSPACE *delimitMateBackspace*
|
||||||
|
|
||||||
If you press backspace inside an empty pair, both delimiters are deleted. When
|
If you press backspace inside an empty pair, both delimiters are deleted. When
|
||||||
expansions are enabled, <BS> will also delete the expansions. NOTE that
|
expansions are enabled, <BS> will also delete the expansions.
|
||||||
deleting <CR> expansions will break the redo command.
|
|
||||||
|
|
||||||
If you type <S-BS> (shift + backspace) instead, only the closing delimiter
|
If you type <S-BS> (shift + backspace) instead, only the closing delimiter
|
||||||
will be deleted. NOTE that this will not usually work when using Vim from the
|
will be deleted. NOTE that this will not usually work when using Vim from the
|
||||||
|
|||||||
Reference in New Issue
Block a user