Disable Fly mode by default.

This commit is contained in:
jiangfriend@gmail.com 2012-05-17 00:16:58 +08:00
parent 1f45d88a95
commit df761f3f28
2 changed files with 16 additions and 10 deletions

View File

@ -109,15 +109,20 @@ Features
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 ")"
Default Options: the most situation maybe want to insert single closed pair in the string, eg ")"
let g:AutoPairsFlyMode = 1 Fly Mode is DISABLED by default.
let g:AutoPairsShortcutBackInsert = '<M-b>'
add **let g:AutoPairsFlyMode = 1** .vimrc to turn it on
Default Options:
let g:AutoPairsFlyMode = 0
let g:AutoPairsShortcutBackInsert = '<M-b>'
Shortcuts Shortcuts
--------- ---------
@ -191,8 +196,9 @@ Options
* g:AutoPairsFlyMode * g:AutoPairsFlyMode
Default : 1 Default : 0
set it to 1 to enable FlyMode.
see FlyMode section for details. see FlyMode section for details.
* g:AutoPairsShortcutBackInsert * g:AutoPairsShortcutBackInsert

View File

@ -1,8 +1,8 @@
" Insert or delete brackets, parens, quotes in pairs. " Insert or delete brackets, parens, quotes in pairs.
" Maintainer: JiangMiao <jiangfriend@gmail.com> " Maintainer: JiangMiao <jiangfriend@gmail.com>
" Contributor: camthompson " Contributor: camthompson
" Last Change: 2012-05-15 " Last Change: 2012-05-16
" Version: 1.2.1 " Version: 1.2.2
" Homepage: http://www.vim.org/scripts/script.php?script_id=3599 " Homepage: http://www.vim.org/scripts/script.php?script_id=3599
" Repository: https://github.com/jiangmiao/auto-pairs " Repository: https://github.com/jiangmiao/auto-pairs
@ -53,7 +53,7 @@ endif
" Fly mode will for closed pair to jump to closed pair instead of insert. " Fly mode will for closed pair to jump to closed pair instead of insert.
" also support AutoPairsBackInsert to insert pairs where jumped. " also support AutoPairsBackInsert to insert pairs where jumped.
if !exists('g:AutoPairsFlyMode') if !exists('g:AutoPairsFlyMode')
let g:AutoPairsFlyMode = 1 let g:AutoPairsFlyMode = 0
endif endif
" Work with Fly Mode, insert pair where jumped " Work with Fly Mode, insert pair where jumped