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
Hello,
Thank you for this wonderful and unique plugin.
On Windows, apparently all functions using the system command below, are popping up an empty command prompt and freeze. system("date -u +'%Y%m%d%H%M%S'")[:-2] . "000"
I'm using gVim.
Any chance I'm doing something wrong? I'm reading inside the code comments something about powershell, but I think the commands are using the standard windows command prompt.
Thank you!
The text was updated successfully, but these errors were encountered:
You're not doing anything wrong. That line was just only tested on (and intended for) unix-y environments, as it runs the system's "date" utility. In the classic Windows command line this doesn't exist in that form.
It's also possible to get this timestamp via vim's built-in strftime() function - it doesn't behave 100% identically across systems, but close enough. The problem is that we need the timestamp for the UTC timezone, and vim doesn't have built-in support for that. So we need to do some custom calculations to implement it. Something like in https://github.com/dahu/vim-type-datetime/blob/master/autoload/datetime.vim, function datetime#localtime()
Hello,
Thank you for this wonderful and unique plugin.
On Windows, apparently all functions using the system command below, are popping up an empty command prompt and freeze.
system("date -u +'%Y%m%d%H%M%S'")[:-2] . "000"
I'm using gVim.
Any chance I'm doing something wrong? I'm reading inside the code comments something about powershell, but I think the commands are using the standard windows command prompt.
Thank you!
The text was updated successfully, but these errors were encountered: