Vim tip: quickly insert current filename

vim.png

I don’t need this functionality very often, but when I do, it’s nice to have a quick and easy way to do it. In order to insert the current filename, while in insert mode press Ctrl-r%.

Related Posts

Comments are closed.