Shougo / neosnippet.vim

neo-snippet plugin
Other
1.12k stars 108 forks source link

Unnamed register is destroyed #479

Closed tyru closed 4 years ago

tyru commented 4 years ago

Problem

  1. Delete text
  2. Type if<Tab> to wrap the text with if-statement
  3. Type p in if-block
  4. condition is pasted

filetype is go. but maybe this problem does not depend on filetype.

画面収録 2019-12-09 19 54 31

Expected

  1. Delete text
  2. Type if<Tab> to wrap the text with if-statement
  3. Type p in if-block
  4. the deleted text is pasted
Shougo commented 4 years ago

Sorry. Unfortunately, this is Vim's select mode feature.

Select mode text breaks your unnamed register like visual mode.

Shougo commented 4 years ago

Note: You have deleted selected text condition, so your unnamed register is broken.

Shougo commented 4 years ago

If you don't like the behavior, you need to request the feature in Vim issues instead.

Shougo commented 4 years ago

Note:

https://github.com/Shougo/neosnippet.vim/issues/471

The register restore feature is removed to fix the problem.