Skip to content

Commit 6f87341

Browse files
committed
Fix backspace with virtualedit
1 parent ceeee48 commit 6f87341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vsnip.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ endfunction
7474
" extra mapping
7575
"
7676
if g:vsnip_extra_mapping
77-
snoremap <expr> <BS> ("\<BS>" . (getcurpos()[2] == col('$') - 1 ? 'a' : 'i'))
77+
snoremap <expr> <BS> ("\<BS>" . (&virtualedit ==# '' && getcurpos()[2] >= col('$') - 1 ? 'a' : 'i'))
7878
endif
7979

8080
"

0 commit comments

Comments
 (0)