Skip to content

Instantly share code, notes, and snippets.

@zzak
Created May 3, 2013 22:55
Show Gist options
  • Save zzak/5514903 to your computer and use it in GitHub Desktop.
Save zzak/5514903 to your computer and use it in GitHub Desktop.
vim function to print JST timestamp
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