preservim / vim-wordy

Uncover usage problems in your writing
Other
716 stars 23 forks source link

Error: Can't open file for writing #38

Open justinlovinger opened 3 years ago

justinlovinger commented 3 years ago

vim-wordy is installed with Home Manager on NixOS. When I try to run :Wordy weak, I get error:

Error detected while processing function wordy#init:
line   31:
E482: Can't open file /nix/store/bk3lvr06rv7nvwpiza59gf6vfia39fp9-vimplugin-vim-wordy-2019-11-22/share/vim-plugins/vim-wordy/data/en/weak.dic.rare for writing: read-only file system

I understand why this error is happening. The Nix store is indeed a read-only file system. However, does vim-wordy need to open its dictionaries for writing? Is it possible to avoid this error by opening these dictionaries read-only?

alerque commented 3 years ago

Possibly. Did you try making the change to open it RO as see what if anything broke?