The netrw plug-in also defines a couple of <Plug>
mappings that you can use to define your own mapping to the "browse" feature.
To map gX
to those, you can use:
nmap gX <Plug>NetrwBrowseX
xmap gX <Plug>NetrwBrowseXVis
netrw checks whether there are already keybindings defined to these two <Plug>
mappings and, if so, it skips setting up the gx
mappings itself. (It also skips the gx
mappings if it finds alternative mappings using that sequence were already defined.) So adding these two should be enough to free up gx
for whatever you'd like.