Skip to content

Instantly share code, notes, and snippets.

@paulhodge
Created May 22, 2012 18:57
Show Gist options
  • Save paulhodge/2770949 to your computer and use it in GitHub Desktop.
Save paulhodge/2770949 to your computer and use it in GitHub Desktop.
vim: open a file using the date as filename
" type :L to open a file at ~/notes/log/<current date>
fun! OpenLog()
let fname = strftime("%Y_%m_%d")
exe ":e ~/notes/log/" . fname
endfun
command L call OpenLog()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment