You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Appreciate you for the fantastic plugin. 馃憤 However, I wonder that if it could provide an option to set the language of time for the plugin. Since the language of time in Vim is set to my mother tongue by my system, which is not en_US, this plugin would update the time in the language of my system. That means, in Vim, the %b which represents the abbreviation of the month, is not Jan, Feb, Mar, and the %Z which represents the abbreviation of the time zone, is not UTCCETWET but the ones in my mother tongue. So I have to set the language time individually in some of my document using :language time en_US.UTF-8
The following is cited from vim74/doc/mlang.txt :
:lan[guage] tim[e] {name}
With the "time"argument the language used for time
and date messagesisset. This affects strftime().
This sets $LC_TIME.
Without an argument both are set, and additionally
$LANGisset.
If this plugin could provide an global variable like g:lastmod_lantime, it would be a lot simpler for me to deal with the language of time in different documents. I could put a line of code in vimrc instead of setting the language time again and again.
letg:lastmod_lantime="en_US.UTF-8"
Many thanks and hope for your reply! Hope that it could be implemented!
The text was updated successfully, but these errors were encountered:
I would think about adding the :language call to your vimrc or possibly an autocmd. It's not really the responsibility of a plugin like this to be setting environment variables.
馃槖 馃槴 馃槬 馃様 馃槩 馃樋
Actually I'm not speaking English, but I have to deal with some files which requires totally English like AdBlock Plus rule list.(Which needs Last Modified: field in the head of file)
What's more, some files require totally local language like minutes of meeting.(Which needs to record the time but it's not in Last Modified: field)
I just hope that the plugin could auto switch to English time format when I need to update Last Modified: field in the AdBlock Plus rule list, and fall back to the local language time format when I am editing other file which doesn't have a Last Modified: field.
Hence I just hope the plugin could do sth. like :
let orig_lctime =v:lc_timelet lctime =s:GetAny('lantime')
language time lctime
...
(Update timestamp)
...language time orig_lctime
Ol谩!
Appreciate you for the fantastic plugin. 馃憤 However, I wonder that if it could provide an option to set the language of time for the plugin. Since the language of time in Vim is set to my mother tongue by my system, which is not
en_US
, this plugin would update the time in the language of my system. That means, in Vim, the%b
which represents the abbreviation of the month, is notJan
,Feb
,Mar
, and the%Z
which represents the abbreviation of the time zone, is notUTC
CET
WET
but the ones in my mother tongue. So I have to set the language time individually in some of my document using:language time en_US.UTF-8
The following is cited from
vim74/doc/mlang.txt
:If this plugin could provide an global variable like
g:lastmod_lantime
, it would be a lot simpler for me to deal with the language of time in different documents. I could put a line of code invimrc
instead of setting the language time again and again.Many thanks and hope for your reply! Hope that it could be implemented!
The text was updated successfully, but these errors were encountered: