Jorenar / miniSnip

Lightweight snippet plugin for Vim
MIT License
53 stars 8 forks source link

replacing placeholders deletes placeholder #16

Closed SebastianJL closed 3 years ago

SebastianJL commented 3 years ago

Hello, I found a possible bug. Can you please help me?

I have the following snippet for some assembly code on a learning machine called ULM:

? create function call
// <{fname}>()
subq    8,      %sp,        %sp
ldzwq   <{~1}>,     %call
jmp %call,      %ret
addq    8,      %SP,        %SP

All the whitespaces are tabs. Now if I use this like this

call<tab>

everything works fine. But when I first type a tab and then type call<tab> the placeholder <{~1}> does not get replaced but just deleted.

    call<tab>