How to insert the current filename into the Vim's contents Last updated on Apr 21, 2024 1 min read Vim, Editor The current filename is always present in the Vim’s register named % To insert it, you should use <C-r>% where <C-r> is Ctrl+r Vim Tips Slavisa Jovanovic Associate Professor (Maitre de conférence HDR) My research interests include circuits and systems for AI and energy harvesting circuits.