On 8/15/06, olahjulcsi <[EMAIL PROTECTED]> wrote:
Dear All, I have been trying to find a way to paste the name of the file inside the text of the file. E.g. if the file is name apple.inp I would like to paste automatically 'apple.inp' inside the file. Is it possible to do it in vim? and if it is, how? It would be a very great help if someone could help me.
:imap <f5> <c-r>=expand('%:t')<cr> :nmap <f5> a<c-r>=expand('%:t')<cr> and press F5 Yakov