vim-perforce
vim-perforce copied to clipboard
When browsing directories with netrw, the "read-only" prompt is being displayed
The same thing happens with nerdTree. I don't think this is a bug in vim-perforce, since:
- The conditions under which the plugin (
netrw) decides that a file is read-only are indeed correct (ie: file perms are0444). - To remedy this, the file viewer plugin (
netrwand/ornerdTree, for example), would have to refresh its own view, which might be expensive (at least in the case ofnerdTree, which will recursively re-index the top-level folder it's viewing). - A permanent solution would either require cross-plugin compatibility, or some mangling of FS attributes, which would likely break Perforce along with the plugin.
For those reasons, I think it's fair to say that this issue can be closed.
My thinking was to simply disable the prompt when browsing with netrw.