update README

This commit is contained in:
jiangfriend@gmail.com 2011-12-22 12:30:04 +08:00
parent d0fb9fe72b
commit 583d0a4196
2 changed files with 21 additions and 4 deletions

View File

@ -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.

View File

@ -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.')