www.ShoppingPodder.com

Leading Computer Shopping,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

vim and system variables
   Shopping Podder - the Best of Computer Postings! Forum Index -> Computer - Editors  
View previous topic :: View next topic  
Author Message
Antonio Maschio
Guest






PostPosted: Wed Nov 19, 2008 5:13 pm    Post subject: vim and system variables Reply with quote

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






PostPosted: Wed Nov 19, 2008 5:13 pm    Post subject: Re: vim and system variables Reply with quote

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






PostPosted: Wed Nov 19, 2008 8:30 pm    Post subject: Re: vim and system variables Reply with quote

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






PostPosted: Thu Nov 20, 2008 9:06 am    Post subject: Re: vim and system variables Reply with quote

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
Display posts from previous:   
   Shopping Podder - the Best of Computer Postings! Forum Index -> Computer - Editors  
Page 1 of 1
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum