| View previous topic :: View next topic |
| Author |
Message |
Antonio Maschio Guest
|
Posted: Wed Nov 19, 2008 5:13 pm Post subject: vim and system variables |
|
|
Hi,
has vim some inner variable to use in a file that updates its contents
automatically?
For instance, the date. I'd like to have a text file with a line such:
Last updated: November 19, 2008
which is automatically updated to the new date each time I open the file
and modify it, and which is transparent to other editors (so that they
see the real date characters), and that tomorrow, if I open the file and
modify it shows:
Last updated: November 20, 2008
Thanks in advance.
-- Antonio |
|
| |
|
Back to top |
John Delaney Guest
|
Posted: Wed Nov 19, 2008 5:13 pm Post subject: Re: vim and system variables |
|
|
On Nov 19, 11:13 am, Antonio Maschio <tbinNOS...@NOSPAMlibero.it>
wrote:
| Quote: | Hi,
has vim some inner variable to use in a file that updates its contents
automatically?
|
<snip>
How about this plugin?
http://www.vim.org/scripts/script.php?script_id=923 |
|
| |
|
Back to top |
Antonio Maschio Guest
|
Posted: Wed Nov 19, 2008 8:30 pm Post subject: Re: vim and system variables |
|
|
John Delaney ha scritto:
| Quote: | On Nov 19, 11:13 am, Antonio Maschio <tbinNOS...@NOSPAMlibero.it
wrote:
Hi,
has vim some inner variable to use in a file that updates its contents
automatically?
snip
How about this plugin?
http://www.vim.org/scripts/script.php?script_id=923
|
That's exactly what I was looking for! Thanks!
-- Antonio |
|
| |
|
Back to top |
John Beckett Guest
|
Posted: Thu Nov 20, 2008 9:06 am Post subject: Re: vim and system variables |
|
|
Antonio Maschio wrote:
| Quote: | http://www.vim.org/scripts/script.php?script_id=923
That's exactly what I was looking for! Thanks!
|
If it is more than you need, you could also try:
http://vim.wikia.com/wiki/Insert_current_date_or_time
John |
|
| |
|
Back to top |
|