I'd like to have the timestamp inserted on a new line every time I open a certain file.
I see that put =strftime('%c')
is the command that I want, and that putting that command into a file, say pjf.vim
- and then into the folder .vim/ftplugin/
should do the trick. But unfortunately, it doesn't.
autocmd
almost does what I want - but with :
autocmd VimEnter *.pjf pu=strftime('%c')
- it puts the timestamp at the top of the file...
Anyone have any clues?
autocmd
s at all? That'd be the way I would go about something like this. – Tumbler41 Apr 24 '17 at 16:36