Update README

This commit is contained in:
Miao Jiang 2019-01-15 18:40:51 +08:00
parent 4d5060c80c
commit 177664ab1a

View File

@ -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 <M-b> 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({'<?' : '?>', '<?php': '?>'})
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({'<?' : '?>', '<?php': '?>'})