Created
November 13, 2009 20:29
-
-
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'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iab <expr> ddate strftime("%c") | |
| iab <expr> ttime strftime("%H:%M") | |
| iab <expr> ptime strftime("%l:%M %p") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
do you know, why %p is needed? I see no difference without it.