Fixed multiline surrounds in insert mode
This commit is contained in:
parent
b70c7e159d
commit
5cc6e56248
@ -357,7 +357,7 @@ function! s:insert(...) " {{{1
|
|||||||
" remove the initial newline. This fits a use case of mine but is a
|
" remove the initial newline. This fits a use case of mine but is a
|
||||||
" little inconsistent. Is there anyone that would prefer the simpler
|
" little inconsistent. Is there anyone that would prefer the simpler
|
||||||
" behavior of just inserting the newline?
|
" behavior of just inserting the newline?
|
||||||
if linemode && matchstr(getreg('"'),'^\n\s*\zs.*') == 0
|
if linemode && match(getreg('"'),'^\n\s*\zs.*') == 0
|
||||||
call setreg('"',matchstr(getreg('"'),'^\n\s*\zs.*'),getregtype('"'))
|
call setreg('"',matchstr(getreg('"'),'^\n\s*\zs.*'),getregtype('"'))
|
||||||
endif
|
endif
|
||||||
" This can be used to append a placeholder to the end
|
" This can be used to append a placeholder to the end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user