On Thu, 2003-09-18 at 11:29, Andrew Bennetts wrote:
> And to answer the question as actually asked, I think expand('%') will get
> the current file name, but I know very little about scripting vim...

your answer gave me the necessary clue stick...

I tried <c-r>=expand(%)<cr> and the % had to be in quotes.  All working
now.  Here is may tag line for what it is worth...

I have cindent on so the <bs> backspaces might not be necessary for your
settings.

>>---- begin this on one line only  ----<<

imap ,vvi
/***********************************************************************<CR> vi:set 
sw=4 ts=4 et 
cin:<CR>$Id:$<CR><CR><c-r>=expand('%')<cr><CR><CR>DESC<CR><CR><c-r>=strftime("%d/%m/%y")<cr>
 KMF  CHANGE 
LOG<CR><CR><BS><BS>***********************************************************************/

>>------<<<<

-- 
Thanks
KenF
OpenOffice.org developer

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to