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,14 +109,19 @@ Features
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.
the most situation maybe want to insert single closed pair in the string, eg ")"
If jumps in mistake, could use AutoPairsBackInsert(Default Key: <M-b>) to jump back and insert closed pair.
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.
add **let g:AutoPairsFlyMode = 1** .vimrc to turn it on
Default Options:
let g:AutoPairsFlyMode = 0
let g:AutoPairsShortcutBackInsert = '<M-b>'
Shortcuts
@ -191,8 +196,9 @@ Options
* g:AutoPairsFlyMode
Default : 1
Default : 0
set it to 1 to enable FlyMode.
see FlyMode section for details.
* g:AutoPairsShortcutBackInsert

View File

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