svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

Added check for &modifiable before trying paste #95

Closed sbdchd closed 7 years ago

sbdchd commented 7 years ago

Before: When trying to paste in a buffer where &modifiable == 0, EasyClip would produce the following error:

Error detected while processing function EasyClip#Paste#PasteText[14]..EasyClip#Paste#Paste:
line   42:
E21: Cannot make changes, 'modifiable' is off
Press ENTER or type command to continue

After: silence

svermeulen commented 7 years ago

Thanks :)