Skip to content

Instantly share code, notes, and snippets.

@tobym
Created November 13, 2009 20:29
Show Gist options
  • Select an option

  • Save tobym/234132 to your computer and use it in GitHub Desktop.

Select an option

Save tobym/234132 to your computer and use it in GitHub Desktop.
Insert date and time into vim (in insert mode) by typing 'ddate', 'ttime', or 'ptime'
iab <expr> ddate strftime("%c")
iab <expr> ttime strftime("%H:%M")
iab <expr> ptime strftime("%l:%M %p")
@kinesin

kinesin commented Sep 16, 2013

Copy link
Copy Markdown

Hey,
do you know, why %p is needed? I see no difference without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment