denippet.vim
denippet.vim copied to clipboard
Do not use the unnamed register for TM_SELECTED_TEXT
Using the unnamed register causes an unexpected text to be used as the TM_SELECTED_TEXT.
You should explain the unexpected example.
I set unnamedplus to clipboard.
When I operate a yank or delete, the text is stored in the unnamed register.
When using snippets, if TM_SELECTED_TEXT is included, the text in the unnamed register is used unintentionally.
Hm...
@uga-rosa I think getregion() should be used instead.