I donβt know if there is a plugin for this βprotocolβ, but if you want to write your own, you should take a look at the BufReadCmd event (as well as BufWriteCmd). If you do not want to start from scratch, some of these events are defined in the $VIMRUNTIME/plugin/netrwPlugin.vim (for example, for the ftp:// protocol), which should come with your vim installation.
source share