vim - insert current filename
When writing comments in source code or for some other reason than I can think of right now, I like to include the current filename into current vim session.
How?
In vim % is the current filename. It is very useful when writing mappings or running commands from the : prompt.
How?
- Enter insert mode
- use following key sequence: ctrl-r %
In vim % is the current filename. It is very useful when writing mappings or running commands from the : prompt.
I like this post.
ReplyDelete