There is a built-in mapping Ctrl-g which presents the current filename immediately in the command area. I would like to augment this by tapping Ctrl-g again to copy the filename to my system clipboard register.
At the moment, I have added this to my
nnoremap <silent> <c-g><c-g> :let @+=@%<CR>
However, this has the downside of delaying the presentation of the filename when only one Ctrl-g sequence is used. Is it possible to make it so one Ctrl-g immediately shows the filename and the second copies it to a register?