Skip to content

Commit

Permalink
Fix backspace with virtualedit
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Nov 14, 2022
1 parent ceeee48 commit 6f87341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/vsnip.vim
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ endfunction
" extra mapping
"
if g:vsnip_extra_mapping
snoremap <expr> <BS> ("\<BS>" . (getcurpos()[2] == col('$') - 1 ? 'a' : 'i'))
snoremap <expr> <BS> ("\<BS>" . (&virtualedit ==# '' && getcurpos()[2] >= col('$') - 1 ? 'a' : 'i'))
endif

"
Expand Down

0 comments on commit 6f87341

Please sign in to comment.