Indent line when return
This commit is contained in:
parent
423ee192c7
commit
7d721d261f
@ -336,7 +336,8 @@ func! AutoPairsReturn()
|
|||||||
let after = getline('.')
|
let after = getline('.')
|
||||||
let cmd = ''
|
let cmd = ''
|
||||||
for [open, close] in b:AutoPairsList
|
for [open, close] in b:AutoPairsList
|
||||||
if before =~ '\V'.open.'\v\s*$' && after =~ '^\s*\V'.close
|
" before =~ '\V'.open.'\v\s*$' &&
|
||||||
|
if after =~ '^\s*\V'.close
|
||||||
if g:AutoPairsCenterLine && winline() * 3 >= winheight(0) * 2
|
if g:AutoPairsCenterLine && winline() * 3 >= winheight(0) * 2
|
||||||
" Recenter before adding new line to avoid replacing line content
|
" Recenter before adding new line to avoid replacing line content
|
||||||
let cmd = "zz"
|
let cmd = "zz"
|
||||||
|
Loading…
Reference in New Issue
Block a user