maxbrunsfeld / vim-yankstack

A lightweight implementation of emacs's kill-ring for vim
437 stars 29 forks source link

Yankstack adds new lines around paste #40

Closed trusktr closed 10 years ago

trusktr commented 10 years ago

If I try selecting a word by doing typing viw while in NORMAL mode to select the word that the cursor is on, then hit my mapped key for yankstack_substitute_newer_paste, it'll replace the highlighted word with the newer paste but surrounded with new lines sometimes (not sure exactly when yet).

So e.g. if I have

one two three

then VISUALly select the word two, then paste newer or older, it will sometimes change to

one 
pasted_word_here
three
maxbrunsfeld commented 10 years ago

Interesting. I'll try to repro this. Let me know if you can figure out more specifically what causes it. Thanks!

maxbrunsfeld commented 10 years ago

@trusktr, I think this may be correct behavior. When text is yanked linewise, (e.g. using yy or y in linewise visual mode), it will be pasted on its own line.

trusktr commented 9 years ago

@maxbrunsfeld I'm not able to reproduce before. I don't remember if I was yanking linewise, which would make sense as to why it was happening. xD