expandtab

This commit is contained in:
jiangfriend@gmail.com 2012-05-14 14:23:08 +08:00
parent dceeb70a93
commit 80c6af14a2

View File

@ -80,44 +80,44 @@ Features
* Fly Mode * Fly Mode
input: if(a[3) input: if(a[3)
output: if(a[3])| (In Fly Mode) output: if(a[3])| (In Fly Mode)
output: if(a[3)]) (Without Fly Mode) output: if(a[3)]) (Without Fly Mode)
input: input:
{ {
hello();| hello();|
world(); world();
} }
(press } at |) (press } at |)
output: output:
{ {
hello(); hello();
world(); world();
}| }|
(then press <M-b> at | to do backinsert) (then press <M-b> at | to do backinsert)
output: output:
{ {
hello();}| hello();}|
world(); world();
} }
See Fly Mode section for details See Fly Mode section for details
Fly Mode Fly Mode
-------- --------
Fly Mode will always force closed-pair jumping instead of inserting. only for ")", "}", "]" Fly Mode will always force closed-pair jumping instead of inserting. only for ")", "}", "]"
If jumps in mistake, could use AutoPairsBackInsert(Default Key: <M-b>) to jump back and insert closed pair. If jumps in mistake, could use AutoPairsBackInsert(Default Key: <M-b>) to jump back and insert closed pair.
the most situation maybe want to insert single closed pair in the string, eg ")" the most situation maybe want to insert single closed pair in the string, eg ")"
Default Options: Default Options:
let g:AutoPairsFlyMode = 1 let g:AutoPairsFlyMode = 1
let g:AutoPairsShortcutBackInsert = '<M-b>' let g:AutoPairsShortcutBackInsert = '<M-b>'
Shortcuts Shortcuts
--------- ---------
@ -128,7 +128,7 @@ Shortcuts
<M-p> : Toggle Autopairs (g:AutoPairsShortcutToggle) <M-p> : Toggle Autopairs (g:AutoPairsShortcutToggle)
<M-e> : Fast Wrap (g:AutoPairsShortcutFastWrap) <M-e> : Fast Wrap (g:AutoPairsShortcutFastWrap)
<M-n> : Jump to next closed pair (g:AutoPairsShortcutJump) <M-n> : Jump to next closed pair (g:AutoPairsShortcutJump)
<M-b> : BackInsert <M-b> : BackInsert
If <M-p> <M-e> or <M-n> conflict with another keys or want to bind to another keys, add If <M-p> <M-e> or <M-n> conflict with another keys or want to bind to another keys, add
@ -189,17 +189,17 @@ Options
Map <space> to insert a space after the opening character and before the closing one. Map <space> to insert a space after the opening character and before the closing one.
execute 'inoremap <buffer> <silent> <CR> <C-R>=AutoPairsSpace()<CR>' execute 'inoremap <buffer> <silent> <CR> <C-R>=AutoPairsSpace()<CR>'
* g:AutoPairsFlyMode * g:AutoPairsFlyMode
Default : 1 Default : 1
see FlyMode section for details. see FlyMode section for details.
* g:AutoPairsShortcutBackInsert * g:AutoPairsShortcutBackInsert
Default : <M-b> Default : <M-b>
Work with FlyMode, insert the key at the Fly Mode jumped postion Work with FlyMode, insert the key at the Fly Mode jumped postion
TroubleShooting TroubleShooting
--------------- ---------------