mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-04-20 19:28:48 +08:00
update README
This commit is contained in:
parent
d0fb9fe72b
commit
583d0a4196
23
README.md
23
README.md
@ -51,6 +51,19 @@ Features
|
||||
input: |'hello' (press (<M-e> at|)
|
||||
output: ('hello')
|
||||
|
||||
* Quick jump to closed pair.
|
||||
|
||||
input:
|
||||
{
|
||||
something;|
|
||||
}
|
||||
|
||||
(press } at |)
|
||||
|
||||
output:
|
||||
{
|
||||
|
||||
}|
|
||||
|
||||
Shortcuts
|
||||
---------
|
||||
@ -135,7 +148,11 @@ TroubleShooting
|
||||
* How to insert parens purely
|
||||
|
||||
There are 3 ways
|
||||
1 use Ctrl-V ) to insert paren without trigger the plugin.
|
||||
2 use Alt-P to turn off the plugin.
|
||||
3 use DEL or <C-O>x to delete the character insert by plugin.
|
||||
|
||||
1. use Ctrl-V ) to insert paren without trigger the plugin.
|
||||
|
||||
2. use Alt-P to turn off the plugin.
|
||||
|
||||
3. use DEL or <C-O>x to delete the character insert by plugin.
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@ function! AutoPairsInsert(key)
|
||||
end
|
||||
|
||||
" Skip the character if next
|
||||
if next_char == ''
|
||||
if current_char == ''
|
||||
let next_lineno = line('.')+1
|
||||
let next_line = getline(nextnonblank(next_lineno))
|
||||
let next_char = matchstr(next_line, '\s*\zs.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user