From df761f3f28a7e7e2ddcf6542ad22642de1938d5a Mon Sep 17 00:00:00 2001 From: "jiangfriend@gmail.com" Date: Thu, 17 May 2012 00:16:58 +0800 Subject: [PATCH] Disable Fly mode by default. --- README.md | 20 +++++++++++++------- plugin/auto-pairs.vim | 6 +++--- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 28aeffe..7216728 100644 --- a/README.md +++ b/README.md @@ -109,15 +109,20 @@ 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: ) 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: ) 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 - let g:AutoPairsShortcutBackInsert = '' +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 = '' 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 diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 0113a6c..a198dc1 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -1,8 +1,8 @@ " Insert or delete brackets, parens, quotes in pairs. " Maintainer: JiangMiao " 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