file name from command mode

2006-10-25 Thread Naim Far
Hi Vim guys, Any body knows how to get the current file name in command mode?! Thanx...

Re: file name from command mode

2006-10-25 Thread Tim Chase
Any body knows how to get the current file name in command mode?! The common way is either to use expand('%') in an expression (there are modifiers if you need pieces such as the path, extension, etc, as detailed in :help expand() ) or control+R followed by a percent-sign