Site icon Blog of Leonid Mamchenkov

Vim tip: quickly insert current filename

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%.

Via vim users mailing list.

Exit mobile version