svermeulen / vim-subversive

Vim plugin providing operator motions to quickly replace text
MIT License
297 stars 4 forks source link

Setting clipboard to unnamed breaks substitute range. #20

Open diegomichel opened 4 years ago

diegomichel commented 4 years ago

Problem: When setting clipboard to unnamed <leader>siwip doesn't work as expected anymore. Removing the setting solves the issue.

Settings in .vimrc

set clipboard=unnamed
nmap <leader>s <plug>(SubversiveSubstituteRange)
xmap <leader>s <plug>(SubversiveSubstituteRange)
nmap <leader>ss <plug>(SubversiveSubstituteWordRange)

This is the error I get, if something happens to be yanked, instead of the error it works using the value of the register, instead of prompting the user. image