I recently stubled upon a feature in netrw that's called netrw-C
. From the docs:
SETTING EDITING WINDOW *netrw-C* {{{2
One may select a netrw window for editing with the "C" mapping, or by setting
g:netrw_chgwin to the selected window number. Subsequent selection of a file
to edit (|netrw-cr|) will use that window.
Related topics: |netrw-cr|
Associated setting variables: |g:netrw_chgwin|
I've managed to achieve the described behavior by manually setting
g:netrw_chgwin
but I couldn't understand or find how that "C" mapping works.
Yes, I could just map
:let g:netrw_chgwin = winnr()
but I'm curious how the original netrw-C
mapping works.
Does anybody know how to use the "C" mapping described in the docs?