add contributor list
This commit is contained in:
parent
e62479a542
commit
7e4614d6aa
@ -36,6 +36,11 @@ Features
|
||||
input: '|' (press <SPACE> at |)
|
||||
output: ' |'
|
||||
|
||||
* Skip ' when inside a word
|
||||
|
||||
input: foo| (press ' at |)
|
||||
output: foo'
|
||||
|
||||
* Skip closed bracket.
|
||||
|
||||
input: []
|
||||
@ -156,3 +161,6 @@ TroubleShooting
|
||||
3. use DEL or <C-O>x to delete the character insert by plugin.
|
||||
|
||||
|
||||
Contributors
|
||||
------------
|
||||
* [camthompson](https://github.com/camthompson)
|
||||
|
@ -1,7 +1,8 @@
|
||||
" Insert or delete brackets, parens, quotes in pairs.
|
||||
" Maintainer: JiangMiao <jiangfriend@gmail.com>
|
||||
" Last Change: 2011-12-13
|
||||
" Version: 1.1.3
|
||||
" Contributor: camthompson
|
||||
" Last Change: 2011-12-29
|
||||
" Version: 1.1.4
|
||||
" Homepage: http://www.vim.org/scripts/script.php?script_id=3599
|
||||
" Repository: https://github.com/jiangmiao/auto-pairs
|
||||
|
||||
@ -77,6 +78,11 @@ function! AutoPairsInsert(key)
|
||||
return a:key
|
||||
end
|
||||
|
||||
" Ignore ' if follows a word
|
||||
if a:key == "'" && prev_char =~ '\v\w'
|
||||
return a:key
|
||||
end
|
||||
|
||||
|
||||
if !has_key(g:AutoPairs, a:key)
|
||||
" Skip the character if next character is space
|
||||
@ -110,9 +116,6 @@ function! AutoPairsInsert(key)
|
||||
return "\<Right>"
|
||||
end
|
||||
|
||||
if a:key == "'" && prev_char =~ '\v\w'
|
||||
return a:key
|
||||
else
|
||||
return open.close."\<Left>"
|
||||
endfunction
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user