bfredl / nvim-miniyank

killring-alike plugin for neovim and vim 8 with no default mappings
MIT License
233 stars 15 forks source link

Miniyank only works once #5

Closed ntcong closed 7 years ago

ntcong commented 8 years ago

I have this config

Plug 'bfredl/nvim-miniyank'
map p <Plug>(miniyank-autoput)
map P <Plug>(miniyank-autoPut)

map <C-p> <Plug>(miniyank-cycle)

Then I tried to yank three lines (1,2 and 3), paste (got 3) and use C-p to cycle. Miniyank will just cycle once to previous (replace 3 with 2), and stop working after that. I'm using neovim 0.1.5 with clipboard=unnamedplus

ntcong commented 8 years ago

I think it's because I had an autocmd TextChanged for Neomake, removing it fixes the problem

bfredl commented 8 years ago

Yes, if TextChanged does something that changes b:changedtick, it will not work.

ntcong commented 7 years ago

Thank you I think it worth noting so people won't have the same issue.