From 177664ab1aa9b12e50134a4b004ddb5e694cd115 Mon Sep 17 00:00:00 2001 From: Miao Jiang Date: Tue, 15 Jan 2019 18:40:51 +0800 Subject: [PATCH] Update README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 667e9ed..944201a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Insert or delete brackets, parens, quotes in pair. Installation ------------ + copy plugin/auto-pairs.vim to ~/.vim/plugin or if you are using `pathogen`: @@ -249,6 +250,7 @@ Options Jump over following closed pair for pair {'begin': 'end//n]'}, e is not mapped, use wild closed pair ] to jump over 'end' + use to back insert ] after jumping Buffer Level Pairs Setting -------------------------- @@ -259,6 +261,7 @@ eg: " When the filetype is FILETYPE then make AutoPairs only match for parenthesis au Filetype FILETYPE let b:AutoPairs = {"(": ")"} + au FileType php let b:AutoPairs = AutoPairsDefine({'', ''}) TroubleShooting --------------- @@ -298,6 +301,8 @@ Multibyte Pairs au FileType html let b:AutoPairs = AutoPairsDefine({''}, ['{']) add pair and remove '{' for html file + the pair implict start with \V, so if want to match start of line ^ should be write in \^ vim comment {'\^"': ''} + * General usage au FileType php let b:AutoPairs = AutoPairsDefine({'', ''})