Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change from 24 hour time to AM/PM #58

Open
pyfb78 opened this issue Jul 2, 2021 · 2 comments
Open

Change from 24 hour time to AM/PM #58

pyfb78 opened this issue Jul 2, 2021 · 2 comments

Comments

@pyfb78
Copy link

pyfb78 commented Jul 2, 2021

I know this is kinda small, but I was wondering if there is a way for vim-auto-save to tell you what time it auto-saved in AM/PM time.

@907th
Copy link
Owner

907th commented Jul 5, 2021

Hello, @pavanscoding! I no longer maintain this plugin. Sorry!
You're right that AM/PM time feature seems to be a very small improvement. You can try to implement it yourself. It won't be hard because the source code of the plugin is very small and simple. You will need to learn Vim scripting language a little of course. Use Learn Vimscript the Hard Way or any other book from internet.
Good luck and best wishes!

@igbanam
Copy link
Collaborator

igbanam commented Aug 4, 2023

Hi @pavanscoding 👋🏾

Ideally, you'd want to change "%H:%M:%S" to "%I:%M %P" in the line below

echo "(AutoSave) saved at " . strftime("%H:%M:%S")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants