Created
May 3, 2013 22:55
-
-
Save zzak/5514903 to your computer and use it in GitHub Desktop.
vim function to print JST timestamp
This file contains 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
fu! Jstdate() | |
let date = system("TZ=Japan date +'%a %b %e %T %Y'") | |
return substitute(date, "\\\n", "", "") | |
endfu | |
imap <C-J> <C-R>=Jstdate()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment