Is it possible to change what goes into <c-g>’s output? Specifically, I want to add the current filetype to to the output.
You can do this by overloading the command with a mapping. Since :file is the same as <C-g>, let's use that; it saves us the :normal:
:nnoremap <silent> <C-g> :file<Bar>echon ' ' &filetype<CR>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With